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 gdbmi;
gdbmi.fromString(message); gdbmi.fromString(message);
exception.fromGdbMI(gdbmi); exception.fromGdbMI(gdbmi);
// Don't show the Win32 x86 emulation subsystem breakpoint hit exception. // Don't show the Win32 x86 emulation subsystem breakpoint hit or the
if (exception.exceptionCode == winExceptionWX86Breakpoint) // set thread names exception.
if (exception.exceptionCode == winExceptionWX86Breakpoint
|| exception.exceptionCode == winExceptionSetThreadName) {
return; return;
}
const QString message = exception.toString(true); const QString message = exception.toString(true);
showStatusMessage(message); showStatusMessage(message);
// Report C++ exception in application output as well. // Report C++ exception in application output as well.
if (exception.exceptionCode == winExceptionCppException) if (exception.exceptionCode == winExceptionCppException)
showMessage(message + QLatin1Char('\n'), AppOutput); showMessage(message + QLatin1Char('\n'), AppOutput);
if (!isDebuggerWinException(exception.exceptionCode) if (!isDebuggerWinException(exception.exceptionCode)) {
&& exception.exceptionCode != winExceptionSetThreadName) {
const Task::TaskType type = const Task::TaskType type =
isFatalWinException(exception.exceptionCode) ? Task::Error : Task::Warning; isFatalWinException(exception.exceptionCode) ? Task::Error : Task::Warning;
const FileName fileName = exception.file.isEmpty() ? const FileName fileName = exception.file.isEmpty() ?