forked from qt-creator/qt-creator
debugger: more linear state handling in core adapter
This commit is contained in:
@@ -976,7 +976,10 @@ static bool isAllowedTransition(DebuggerState from, DebuggerState to)
|
||||
case EngineSetupRequested:
|
||||
return to == EngineSetupOk || to == EngineSetupFailed;
|
||||
case EngineSetupFailed:
|
||||
return to == DebuggerFinished;
|
||||
// FIXME: In therory it's the engine's task to go into a
|
||||
// proper "Shutdown" state before calling notifyEngineSetupFailed
|
||||
//return to == DebuggerFinished;
|
||||
return to == EngineShutdownRequested;
|
||||
case EngineSetupOk:
|
||||
return to == InferiorSetupRequested || to == EngineShutdownRequested;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user