Commit 04ad5619 authored by hjk's avatar hjk
Browse files

debugger: somewhat more graceful shutdown in known situations

parent f8555f42
...@@ -1409,7 +1409,15 @@ void DebuggerEngine::setActive(bool on) ...@@ -1409,7 +1409,15 @@ void DebuggerEngine::setActive(bool on)
void DebuggerEngine::quitDebugger() void DebuggerEngine::quitDebugger()
{ {
showMessage("QUIT DEBUGGER REQUESTED"); showMessage("QUIT DEBUGGER REQUESTED");
shutdownInferior(); d->m_targetState = DebuggerFinished;
if (state() == InferiorStopOk) {
d->doShutdownInferior();
} else if (state() == InferiorRunOk) {
d->doInterruptInferior();
} else {
// FIXME: We should disable the actions connected to that
notifyInferiorIll();
}
} }
void DebuggerEngine::requestInterruptInferior() void DebuggerEngine::requestInterruptInferior()
......
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