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:
hjk
2011-07-13 16:52:28 +02:00
committed by Eike Ziller
parent 1a63d5e625
commit 98a4f9ae71
5 changed files with 23 additions and 2 deletions

View File

@@ -329,6 +329,14 @@ DebuggerSettings::DebuggerSettings(QSettings *settings)
item->setSettingsKey(debugModeGroup, QLatin1String("BreakOnWarning"));
insertItem(BreakOnWarning, item);
item = new SavedAction(this);
item->setText(tr("Break on \"qFatal\""));
item->setCheckable(true);
item->setDefaultValue(true);
item->setValue(true);
item->setSettingsKey(debugModeGroup, QLatin1String("BreakOnFatal"));
insertItem(BreakOnFatal, item);
//
// Settings
//