Commit fbe6f968 authored by hjk's avatar hjk
Browse files

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
parent 0e6226b0
...@@ -4155,6 +4155,10 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &gdb, const QStr ...@@ -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() ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment