From 3ea8fe07640845cd6f22a44a789be430925fb319 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Wed, 30 Sep 2009 10:25:00 +0200
Subject: [PATCH] debugger: augment state diagram

---
 src/plugins/debugger/debuggermanager.cpp | 74 +++++++++++++-----------
 1 file changed, 41 insertions(+), 33 deletions(-)

diff --git a/src/plugins/debugger/debuggermanager.cpp b/src/plugins/debugger/debuggermanager.cpp
index f1474fc7b79..b8a93e99b41 100644
--- a/src/plugins/debugger/debuggermanager.cpp
+++ b/src/plugins/debugger/debuggermanager.cpp
@@ -98,39 +98,47 @@
 // Note: the Debugger process itself is referred to as 'Debugger',
 // whereas the debugged process is referred to as 'Inferior'.
 //
-// 0 == DebuggerNotReady
-//          |
-//     EngineStarting
-//          |
-//     AdapterStarting --> AdapterStartFailed --> 0
-//          |
-//     AdapterStarted
-//          |
-//     InferiorStarting --> InferiorStartFailed --> 0
-//          |          |
-//          |          |
-//     InferiorStopped |
-//          |          |
-//          | <--------
-//          |  .------------------------------------.
-//          |  v                                    |
-//     InferiorRunningRequested                     |
-//          |                                       |
-//     InferiorRunning  --> 1 (normal exit)         |
-//          |                                       |
-//     InferiorStopping                             |
-//          |                                       |
-//     InferiorStopped --> 1                        |
-//          |                                       |
-//          `---------------------------------------'
-//          
-// 1 == InferiorShuttingDown  -> InferiorShutdownFailed
-//          |
-//     InferiorShutDown
-//          |
-//     AdapterShuttingDown  -> AdapterShutdownFailed --> 0
-//          |
-//          0
+//               0 == DebuggerNotReady
+//                          |
+//                     EngineStarting
+//                          |
+//                     AdapterStarting --> AdapterStartFailed --> 0
+//                          |
+//                     AdapterStarted
+//                          |
+//                     InferiorPreparing --> InferiorPreparationFailed --> 0
+//                          |
+//                     InferiorPrepared
+//                          |
+//                     InferiorStarting --> InferiorStartFailed --> 0
+//                          |
+//         (core)           |
+//      .-----------------<-|
+//      |                   |    (attach)               
+//  InferiorUnrunnable      |----------------------.
+//      |                   |                      v
+//      |                   |
+//      |                   |  .------------------------------------.
+//      |                   |  v                                    |
+//      |              InferiorRunningRequested    v                |
+//      |                   |                      |                |
+//      |        .---- InferiorRunning             |                |
+//      |        |          |                      |                |
+//      |        |     InferiorStopping            |                |
+//      |        |          |                      |                |
+//      |        v          v                      |                |
+//      |        |<--- InferiorStopped <-----------'                |
+//      |        |          |                                       |
+//      |        |          `---------------------------------------'
+//      |        |          
+//      |        '---> InferiorShuttingDown  -> InferiorShutdownFailed
+//      |                   |
+//      |              InferiorShutDown
+//      |                   |
+//      |                   v
+//      '------------> AdapterShuttingDown  -> AdapterShutdownFailed --> 0
+//                          |
+//                          0
 //
 // Allowed actions:
 //    [R] :  Run
-- 
GitLab