From eb5cf529b29dbe8461519628fea96fce3246de00 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Wed, 10 Nov 2010 12:53:33 +0100
Subject: [PATCH] debugger: fix/clarify intention of the EngineSetupFailed
 state.

---
 src/plugins/debugger/debuggerengine.cpp | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/plugins/debugger/debuggerengine.cpp b/src/plugins/debugger/debuggerengine.cpp
index 57902453cff..bb614ab1b96 100644
--- a/src/plugins/debugger/debuggerengine.cpp
+++ b/src/plugins/debugger/debuggerengine.cpp
@@ -634,10 +634,9 @@ static bool isAllowedTransition(DebuggerState from, DebuggerState to)
     case EngineSetupRequested:
         return to == EngineSetupOk || to == EngineSetupFailed;
     case EngineSetupFailed:
-        // 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;
+        // In is the engine's task to go into a proper "Shutdown"
+        // state before calling notifyEngineSetupFailed
+        return to == DebuggerFinished;
     case EngineSetupOk:
         return to == InferiorSetupRequested || to == EngineShutdownRequested;
 
-- 
GitLab