diff options
| author | Greg Clayton <gclayton@apple.com> | 2013-12-18 02:06:45 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2013-12-18 02:06:45 +0000 |
| commit | 6b32f1ec181c7ddeea6ee62fd612b7cfd794280e (patch) | |
| tree | 74d02f083edaf4d89a7c436bcdbb06565d60aee5 /lldb/source/Target | |
| parent | eadd2cb459d563f0c227b8daf345ec91ca2bf5d3 (diff) | |
| download | bcm5719-llvm-6b32f1ec181c7ddeea6ee62fd612b7cfd794280e.tar.gz bcm5719-llvm-6b32f1ec181c7ddeea6ee62fd612b7cfd794280e.zip | |
<rdar://problem/15668743>
Fixed a crasher that would only occur if Xcode attaches to a remote process first, then launches.
llvm-svn: 197546
Diffstat (limited to 'lldb/source/Target')
| -rw-r--r-- | lldb/source/Target/Target.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index 7c850c6680a..a0435d137fb 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -2327,6 +2327,16 @@ Target::Launch (Listener &listener, ProcessLaunchInfo &launch_info) 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 |

