forked from qt-creator/qt-creator
debugger: implement an option to stop on qWarnings (gdb only)
Task-number: QTCREATORBUG-842 Change-Id: If1a7d0cd9dfaa5b6b4915fa67a150683cf6786b9 Reviewed-on: http://codereview.qt.nokia.com/226 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -4726,11 +4726,14 @@ void GdbEngine::handleNamespaceExtraction(const GdbResponse &response)
|
||||
setQtNamespace(ns + "::");
|
||||
}
|
||||
|
||||
if (startParameters().startMode == AttachCore)
|
||||
if (startParameters().startMode == AttachCore) {
|
||||
notifyInferiorSetupOk(); // No breakpoints in core files.
|
||||
else
|
||||
} else {
|
||||
postCommand("-break-insert -f '" + qtNamespace() + "qFatal'",
|
||||
CB(handleBreakOnQFatal));
|
||||
if (debuggerCore()->boolSetting(BreakOnWarning))
|
||||
postCommand("-break-insert -f '" + qtNamespace() + "qWarning'");
|
||||
}
|
||||
}
|
||||
|
||||
void GdbEngine::handleBreakOnQFatal(const GdbResponse &response)
|
||||
|
||||
Reference in New Issue
Block a user