debugger: more linear state handling in core adapter

This commit is contained in:
hjk
2010-07-15 13:23:44 +02:00
parent 9f8b5af3b2
commit d6fc1193ed
6 changed files with 96 additions and 85 deletions

View File

@@ -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;