Remove unneeded limbo state flag.
llvm-svn: 185010
diff --git a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
index 32dfdd7..1f33013 100644
--- a/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
+++ b/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
@@ -76,7 +76,6 @@
m_monitor(NULL),
m_module(NULL),
m_message_mutex (Mutex::eMutexTypeRecursive),
- m_in_limbo(false),
m_exit_now(false)
{
// FIXME: Putting this code in the ctor and saving the byte order in a
@@ -257,18 +256,9 @@
{
StateType state = GetPrivateState();
- assert(state == eStateStopped || state == eStateCrashed);
+ assert(state == eStateStopped);
- // We are about to resume a thread that will cause the process to exit so
- // set our exit status now. Do not change our state if the inferior
- // crashed.
- if (state == eStateStopped)
- {
- if (m_in_limbo)
- SetExitStatus(m_exit_status, NULL);
- else
- SetPrivateState(eStateRunning);
- }
+ SetPrivateState(eStateRunning);
bool did_resume = false;
uint32_t thread_count = m_thread_list.GetSize(false);
@@ -395,7 +385,6 @@
thread->SetState(eStateStopped);
if (message.GetTID() == GetID())
{
- m_in_limbo = true;
m_exit_status = message.GetExitStatus();
if (m_exit_now)
{