CDB: Don't show status messages for set thread name exceptions.

Change-Id: Id80086990a456ba9bf6d5b86097f95f2197d0971
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
David Schulz
2015-06-23 12:42:21 +02:00
parent 2659e505e6
commit 33c2365392

View File

@@ -2383,16 +2383,18 @@ void CdbEngine::handleExtensionMessage(char t, int token, const QByteArray &what
GdbMi gdbmi;
gdbmi.fromString(message);
exception.fromGdbMI(gdbmi);
// Don't show the Win32 x86 emulation subsystem breakpoint hit exception.
if (exception.exceptionCode == winExceptionWX86Breakpoint)
// Don't show the Win32 x86 emulation subsystem breakpoint hit or the
// set thread names exception.
if (exception.exceptionCode == winExceptionWX86Breakpoint
|| exception.exceptionCode == winExceptionSetThreadName) {
return;
}
const QString message = exception.toString(true);
showStatusMessage(message);
// Report C++ exception in application output as well.
if (exception.exceptionCode == winExceptionCppException)
showMessage(message + QLatin1Char('\n'), AppOutput);
if (!isDebuggerWinException(exception.exceptionCode)
&& exception.exceptionCode != winExceptionSetThreadName) {
if (!isDebuggerWinException(exception.exceptionCode)) {
const Task::TaskType type =
isFatalWinException(exception.exceptionCode) ? Task::Error : Task::Warning;
const FileName fileName = exception.file.isEmpty() ?