Commit 2efdeb5c authored by hjk's avatar hjk
Browse files

debugger: fix EngineSetupFailed path

Task-number: QTCREATORBUG-2837
parent 57f76162
...@@ -1178,7 +1178,7 @@ void DebuggerEngine::notifyEngineSetupFailed() ...@@ -1178,7 +1178,7 @@ void DebuggerEngine::notifyEngineSetupFailed()
setState(EngineSetupFailed); setState(EngineSetupFailed);
QTC_ASSERT(d->m_runControl, return); QTC_ASSERT(d->m_runControl, return);
d->m_runControl->startFailed(); d->m_runControl->startFailed();
d->queueShutdownEngine(); setState(DebuggerFinished);
} }
void DebuggerEngine::notifyEngineSetupOk() void DebuggerEngine::notifyEngineSetupOk()
......
...@@ -172,6 +172,13 @@ ...@@ -172,6 +172,13 @@
// Transitions marked by '*' are done asynchronously. // Transitions marked by '*' are done asynchronously.
// The GdbEngine->setupEngine() function is described in more detail below. // The GdbEngine->setupEngine() function is described in more detail below.
// //
// The engines are responsible for local roll-back to the last
// acknowledged state before calling notify*Failed. I.e. before calling
// notifyEngineSetupFailed() any process started during setupEngine()
// so far must be terminated.
//
//
//
// DebuggerNotReady // DebuggerNotReady
// + // +
// EngineSetupRequested // EngineSetupRequested
......
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