diff options
Diffstat (limited to 'lldb/source/Core/State.cpp')
-rw-r--r-- | lldb/source/Core/State.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/source/Core/State.cpp b/lldb/source/Core/State.cpp index 8cb748ff67f..c660477f1c4 100644 --- a/lldb/source/Core/State.cpp +++ b/lldb/source/Core/State.cpp @@ -90,7 +90,7 @@ lldb_private::StateIsRunningState (StateType state) } bool -lldb_private::StateIsStoppedState (StateType state) +lldb_private::StateIsStoppedState (StateType state, bool must_exist) { switch (state) { @@ -105,9 +105,11 @@ lldb_private::StateIsStoppedState (StateType state) break; case eStateUnloaded: + case eStateExited: + return !must_exist; + case eStateStopped: case eStateCrashed: - case eStateExited: case eStateSuspended: return true; } |