diff options
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index aea8255a526..e4a5bdb682c 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -1222,7 +1222,6 @@ Process::Attach (const char *process_name, bool wait_for_launch) if (error.Success()) { SetPublicState (eStateAttaching); - StartPrivateStateThread(); error = DoAttachToProcessWithName (process_name, wait_for_launch); if (error.Fail()) { @@ -1635,7 +1634,9 @@ Process::RunPrivateStateThread () HandlePrivateEvent (event_sp); } - if (internal_state == eStateInvalid || internal_state == eStateExited) + if (internal_state == eStateInvalid || + internal_state == eStateExited || + internal_state == eStateDetached ) break; } |