forked from qt-creator/qt-creator
Debugger: Fix break at qWarning()/qFatal() for Qt 5.
Use the same setting in CDB, move it to common settings page in a follow-up commit. Change-Id: I67d6cd706f658c616a431e9d518d52e020afa54c Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -5096,13 +5096,18 @@ void GdbEngine::handleNamespaceExtraction(const GdbResponse &response)
|
||||
} else {
|
||||
if (debuggerCore()->boolSetting(BreakOnAbort))
|
||||
postCommand("-break-insert -f abort");
|
||||
if (debuggerCore()->boolSetting(BreakOnWarning))
|
||||
if (debuggerCore()->boolSetting(BreakOnWarning)) {
|
||||
postCommand("-break-insert -f '" + qtNamespace() + "qWarning'");
|
||||
if (debuggerCore()->boolSetting(BreakOnFatal))
|
||||
postCommand("-break-insert -f '" + qtNamespace() + "QMessageLogger::warning'");
|
||||
}
|
||||
if (debuggerCore()->boolSetting(BreakOnFatal)) {
|
||||
postCommand("-break-insert -f '" + qtNamespace() + "qFatal'",
|
||||
CB(handleBreakOnQFatal));
|
||||
else
|
||||
CB(handleBreakOnQFatal), QVariant(false));
|
||||
postCommand("-break-insert -f '" + qtNamespace() + "QMessageLogger::fatal'",
|
||||
CB(handleBreakOnQFatal), QVariant(true));
|
||||
} else {
|
||||
notifyInferiorSetupOk();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5119,7 +5124,8 @@ void GdbEngine::handleBreakOnQFatal(const GdbResponse &response)
|
||||
}
|
||||
|
||||
// Continue setup.
|
||||
notifyInferiorSetupOk();
|
||||
if (response.cookie.toBool())
|
||||
notifyInferiorSetupOk();
|
||||
}
|
||||
|
||||
void GdbEngine::notifyInferiorSetupFailed(const QString &msg)
|
||||
|
||||
Reference in New Issue
Block a user