Fixes: debugger: simplify state logic

This commit is contained in:
hjk
2009-02-17 15:12:46 +01:00
parent 599b2438b9
commit 2c0c96abfe
4 changed files with 14 additions and 46 deletions

View File

@@ -77,23 +77,15 @@ class BreakpointData;
// DebuggerProcessNotReady
// |
// DebuggerProcessStartingUp
// |
// DebuggerReady [R] [N]
// | <-------------------------------------.
// DebuggerInferiorRunningRequested |
// | |
// DebuggerInferiorRunning |
// | |
// | |
// DebuggerInferiorRunning |
// | |
// DebuggerInferiorStopRequested |
// | |
// DebuggerInferiorStopped |
// | |
// DebuggerInferiorUpdating |
// | |
// DebuggerInferiorUpdateFinishing |
// | |
// DebuggerInferiorReady [C] [N] |
// | |
// `---------------------------------------'
//
// Allowed actions:
@@ -107,17 +99,11 @@ enum DebuggerStatus
{
DebuggerProcessNotReady, // Debugger not started
DebuggerProcessStartingUp, // Debugger starting up
DebuggerProcessReady, // Debugger started, Inferior not yet
// running or already finished
DebuggerInferiorRunningRequested, // Debuggee requested to run
DebuggerInferiorRunning, // Debuggee running
DebuggerInferiorStopRequested, // Debuggee running, stop requested
DebuggerInferiorStopped, // Debuggee stopped
DebuggerInferiorUpdating, // Debuggee updating data views
DebuggerInferiorUpdateFinishing, // Debuggee updating data views aborting
DebuggerInferiorReady,
};
@@ -151,10 +137,8 @@ private:
friend class WinEngine;
// called from the engines after successful startup
virtual void notifyStartupFinished() = 0;
virtual void notifyInferiorStopRequested() = 0;
virtual void notifyInferiorStopped() = 0;
virtual void notifyInferiorUpdateFinished() = 0;
virtual void notifyInferiorRunningRequested() = 0;
virtual void notifyInferiorRunning() = 0;
virtual void notifyInferiorExited() = 0;
@@ -343,9 +327,7 @@ private:
QString selectedPluginBreakpointsPattern() const
{ return m_settings.m_pluginSelectedBreakpointsPattern; }
void notifyStartupFinished();
void notifyInferiorStopped();
void notifyInferiorUpdateFinished();
void notifyInferiorRunningRequested();
void notifyInferiorStopRequested();
void notifyInferiorRunning();