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:
@@ -825,6 +825,14 @@ void CdbEngine::runEngine()
|
||||
postCommand(breakAtFunctionCommand(breakFunction), 0);
|
||||
}
|
||||
}
|
||||
if (debuggerCore()->boolSetting(BreakOnWarning)) {
|
||||
postCommand("bm /( QtCored4!qWarning", 0); // 'bm': All overloads.
|
||||
postCommand("bm /( Qt5Cored!QMessageLogger::warning", 0);
|
||||
}
|
||||
if (debuggerCore()->boolSetting(BreakOnFatal)) {
|
||||
postCommand("bm /( QtCored4!qFatal", 0); // 'bm': All overloads.
|
||||
postCommand("bm /( Qt5Cored!QMessageLogger::fatal", 0);
|
||||
}
|
||||
if (startParameters().startMode == AttachCore) {
|
||||
QTC_ASSERT(!m_coreStopReason.isNull(), return; );
|
||||
notifyInferiorUnrunnable();
|
||||
|
||||
Reference in New Issue
Block a user