summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Process.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-10-18 04:14:23 +0000
committerGreg Clayton <gclayton@apple.com>2010-10-18 04:14:23 +0000
commit58d1c9a44f9c3a0b2813e2a63f912d3fe8ec3840 (patch)
tree2f60b8fbbfcf5e19a54376803d0d2d21ff5d3363 /lldb/source/Target/Process.cpp
parent5cd41c4b13aa8ce63a3e84f8caf668f01167f6f0 (diff)
downloadbcm5719-llvm-58d1c9a44f9c3a0b2813e2a63f912d3fe8ec3840.tar.gz
bcm5719-llvm-58d1c9a44f9c3a0b2813e2a63f912d3fe8ec3840.zip
Still trying to get detach to work with debugserver. Got a bit closer,
but something is still killing our inferior. Fixed an issue with darwin-debug where it wasn't passing all needed arguments to the inferior. Fixed a race condition with the attach to named process code. llvm-svn: 116697
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r--lldb/source/Target/Process.cpp5
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;
}
OpenPOWER on IntegriCloud