forked from qt-creator/qt-creator
debugger: Do not automatically kill gdb on internal errors.
This improves overall debugging experience after some "mostly harmless" errors. Reviewed-by: Friedemann Kleint Task-number: QTCREATORBUG-2004
This commit is contained in:
@@ -4155,6 +4155,10 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &gdb, const QStr
|
|||||||
postCommand("set width 0");
|
postCommand("set width 0");
|
||||||
postCommand("set height 0");
|
postCommand("set height 0");
|
||||||
|
|
||||||
|
// Work around http://bugreports.qt.nokia.com/browse/QTCREATORBUG-2004
|
||||||
|
postCommand("maintenance set internal-warning quit no");
|
||||||
|
postCommand("maintenance set internal-error quit no");
|
||||||
|
|
||||||
if (m_isMacGdb) {
|
if (m_isMacGdb) {
|
||||||
postCommand("-gdb-set inferior-auto-start-cfm off");
|
postCommand("-gdb-set inferior-auto-start-cfm off");
|
||||||
postCommand("-gdb-set sharedLibrary load-rules "
|
postCommand("-gdb-set sharedLibrary load-rules "
|
||||||
|
|||||||
@@ -68,7 +68,9 @@ void SessionEngine::saveSessionData()
|
|||||||
unsigned SessionEngine::debuggerCapabilities() const
|
unsigned SessionEngine::debuggerCapabilities() const
|
||||||
{
|
{
|
||||||
return DebuggerEngine::debuggerCapabilities()
|
return DebuggerEngine::debuggerCapabilities()
|
||||||
| AddWatcherCapability | WatchpointCapability;
|
| AddWatcherCapability
|
||||||
|
| BreakOnThrowAndCatchCapability
|
||||||
|
| WatchpointCapability;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
|
|||||||
Reference in New Issue
Block a user