summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2017-03-24 10:01:46 +0100
committerTobias Hunger <tobias.hunger@qt.io>2017-03-27 07:58:15 +0000
commitc73bcd32a82f674929583a17f13c9d2bc696a356 (patch)
tree77a6aa3678d7c668b60f083f46c9c5aeb070060c
parentcf40d98dc9115405176976172e0701b0a463813b (diff)
downloadqt-creator-c73bcd32a82f674929583a17f13c9d2bc696a356.tar.gz
Debugger: Prepend additional info to cdb exception task entry
Most users expect build related entries in the Issues pane, so prepend debugger related exception entries with a prefix making clear that these entries are not build related. Task-number: QTCREATORBUG-17806 Change-Id: I8a78c1eff3a4386f108997954329b694c223400f Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
-rw-r--r--src/plugins/debugger/cdb/cdbengine.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp
index 997073d560..2692cdf759 100644
--- a/src/plugins/debugger/cdb/cdbengine.cpp
+++ b/src/plugins/debugger/cdb/cdbengine.cpp
@@ -2320,7 +2320,9 @@ void CdbEngine::handleExtensionMessage(char t, int token, const QString &what, c
isFatalWinException(exception.exceptionCode) ? Task::Error : Task::Warning;
const FileName fileName = exception.file.isEmpty()
? FileName() : FileName::fromUserInput(exception.file);
- TaskHub::addTask(type, exception.toString(false).trimmed(),
+ const QString taskEntry = tr("Debugger encountered an exception: %1").arg(
+ exception.toString(false).trimmed());
+ TaskHub::addTask(type, taskEntry,
Debugger::Constants::TASK_CATEGORY_DEBUGGER_RUNTIME,
fileName, exception.lineNumber);
}