[Lldb-commits] [lldb] r115999 - /lldb/trunk/source/API/SBTarget.cpp
Sean Callanan
scallanan at apple.com
Thu Oct 7 15:51:14 PDT 2010
Author: spyffe
Date: Thu Oct 7 17:51:14 2010
New Revision: 115999
URL: http://llvm.org/viewvc/llvm-project?rev=115999&view=rev
Log:
Fixed a launching issue.
Modified:
lldb/trunk/source/API/SBTarget.cpp
Modified: lldb/trunk/source/API/SBTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBTarget.cpp?rev=115999&r1=115998&r2=115999&view=diff
==============================================================================
--- lldb/trunk/source/API/SBTarget.cpp (original)
+++ lldb/trunk/source/API/SBTarget.cpp Thu Oct 7 17:51:14 2010
@@ -164,14 +164,14 @@
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())
More information about the lldb-commits
mailing list