forked from qt-creator/qt-creator
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:
@@ -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() ?
|
||||||
|
|||||||
Reference in New Issue
Block a user