diff options
author | hjk <qtc-committer@nokia.com> | 2011-07-13 16:52:28 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2011-07-14 11:58:51 +0200 |
commit | 98a4f9ae71a0997874b06fa53d481bec2b6f8dfb (patch) | |
tree | d127a603d6a4aaa77ea61294bdacd49730564ee8 /src/plugins/debugger/debuggeractions.cpp | |
parent | 1a63d5e625c58bd37893f57d88d24dde243986cd (diff) | |
download | qt-creator-98a4f9ae71a0997874b06fa53d481bec2b6f8dfb.tar.gz |
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>
Diffstat (limited to 'src/plugins/debugger/debuggeractions.cpp')
-rw-r--r-- | src/plugins/debugger/debuggeractions.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/debugger/debuggeractions.cpp b/src/plugins/debugger/debuggeractions.cpp index b36c4ddfbc..54dcaa0b86 100644 --- a/src/plugins/debugger/debuggeractions.cpp +++ b/src/plugins/debugger/debuggeractions.cpp @@ -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 // |