forked from qt-creator/qt-creator
debugger: Make "set breakpoint of qFatal" optional
This is mainly a workaround for cases where gdb crashes when setting this breakpoint. It's unclear so far why this happens, but when it happens, the debugger is basically useless, so there should be a way to disable the "bad" feature. Change-Id: I28ede9b38eb8bf56a8c5998088be487b4ee5896d Reviewed-by: con Task-number: QTCREATORBUG-5275 Reviewed-on: http://codereview.qt.nokia.com/1604 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -4913,10 +4913,13 @@ void GdbEngine::handleNamespaceExtraction(const GdbResponse &response)
|
||||
if (startParameters().startMode == AttachCore) {
|
||||
notifyInferiorSetupOk(); // No breakpoints in core files.
|
||||
} else {
|
||||
postCommand("-break-insert -f '" + qtNamespace() + "qFatal'",
|
||||
CB(handleBreakOnQFatal));
|
||||
if (debuggerCore()->boolSetting(BreakOnWarning))
|
||||
postCommand("-break-insert -f '" + qtNamespace() + "qWarning'");
|
||||
if (debuggerCore()->boolSetting(BreakOnFatal))
|
||||
postCommand("-break-insert -f '" + qtNamespace() + "qFatal'",
|
||||
CB(handleBreakOnQFatal));
|
||||
else
|
||||
notifyInferiorSetupOk();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user