[Lldb-commits] [lldb] r197546 - <rdar://problem/15668743>
Greg Clayton
gclayton at apple.com
Tue Dec 17 18:06:45 PST 2013
Author: gclayton
Date: Tue Dec 17 20:06:45 2013
New Revision: 197546
URL: http://llvm.org/viewvc/llvm-project?rev=197546&view=rev
Log:
<rdar://problem/15668743>
Fixed a crasher that would only occur if Xcode attaches to a remote process first, then launches.
Modified:
lldb/trunk/source/Target/Target.cpp
Modified: lldb/trunk/source/Target/Target.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Target.cpp?rev=197546&r1=197545&r2=197546&view=diff
==============================================================================
--- lldb/trunk/source/Target/Target.cpp (original)
+++ lldb/trunk/source/Target/Target.cpp Tue Dec 17 20:06:45 2013
@@ -2327,6 +2327,16 @@ Target::Launch (Listener &listener, Proc
StateType state = eStateInvalid;
+ // Scope to temporarily get the process state in case someone has manually
+ // remotely connected already to a process and we can skip the platform
+ // launching.
+ {
+ ProcessSP process_sp (GetProcessSP());
+
+ if (process_sp)
+ state = process_sp->GetState();
+ }
+
launch_info.GetFlags().Set (eLaunchFlagDebug);
// Get the value of synchronous execution here. If you wait till after you have started to
More information about the lldb-commits
mailing list