summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2010-10-07 22:51:14 +0000
committerSean Callanan <scallanan@apple.com>2010-10-07 22:51:14 +0000
commit5c67a628b005782d8efae69db731b0afe9d874c3 (patch)
tree12ee3f04400460c7643b4c5c5aee62d84b7e118d
parentabe8c130b10000464b8ec7f7b0420f0294a119d1 (diff)
downloadbcm5719-llvm-5c67a628b005782d8efae69db731b0afe9d874c3.tar.gz
bcm5719-llvm-5c67a628b005782d8efae69db731b0afe9d874c3.zip
Fixed a launching issue.
llvm-svn: 115999
-rw-r--r--lldb/source/API/SBTarget.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/API/SBTarget.cpp b/lldb/source/API/SBTarget.cpp
index 9aac03e8552..fa64cbaf2cd 100644
--- a/lldb/source/API/SBTarget.cpp
+++ b/lldb/source/API/SBTarget.cpp
@@ -164,14 +164,14 @@ SBTarget::Launch
error.SetError (sb_process->Launch (argv, envp, launch_flags, tty, tty, tty));
if (error.Success())
{
+ // We we are stopping at the entry point, we can return now!
+ if (stop_at_entry)
+ return sb_process;
+
// Make sure we are stopped at the entry
StateType state = sb_process->WaitForProcessToStop (NULL);
if (state == eStateStopped)
{
- // We we are stopping at the entry point, we can return now!
- if (stop_at_entry)
- return sb_process;
-
// resume the process to skip the entry point
error.SetError (sb_process->Resume());
if (error.Success())
OpenPOWER on IntegriCloud