summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBTarget.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-06-17 19:21:30 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-06-17 19:21:30 +0000
commita80790203152f7097562437ee4cc9fee2152c766 (patch)
treeee2f75c3bffac050fec8d7bfc19ab775c3d13346 /lldb/source/API/SBTarget.cpp
parent9f3552083d4aae8db067160b870fac35b3a131f8 (diff)
downloadbcm5719-llvm-a80790203152f7097562437ee4cc9fee2152c766.tar.gz
bcm5719-llvm-a80790203152f7097562437ee4cc9fee2152c766.zip
Add a bunch of test cases to TestHelloWorld.py to exercise combinations of dwarf/dsym debug setup.
Among them are test cases to exercise SBTarget.AttachToProcessWithName(); we attach to "hello_world", and verify that, after attachment, the currently selected target indeed matches "hello_world". llvm-svn: 133279
Diffstat (limited to 'lldb/source/API/SBTarget.cpp')
-rw-r--r--lldb/source/API/SBTarget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp
index 78b67db3b0c..03333d940eb 100644
--- a/lldb/source/API/SBTarget.cpp
+++ b/lldb/source/API/SBTarget.cpp
@@ -330,6 +330,10 @@ SBTarget::AttachToProcessWithName
if (sb_process.IsValid())
{
error.SetError (sb_process->Attach (name, wait_for));
+ // If we are doing synchronous mode, then wait for the
+ // process to stop!
+ if (m_opaque_sp->GetDebugger().GetAsyncExecution () == false)
+ sb_process->WaitForProcessToStop (NULL);
}
else
{
OpenPOWER on IntegriCloud