[Lldb-commits] [lldb] r111302 - /lldb/trunk/source/Target/Process.cpp
jingham at apple.com
Tue Aug 17 14:54:19 PDT 2010
Date: Tue Aug 17 16:54:19 2010
New Revision: 111302
Don't try to get the architecture up front when doing attach -w.
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Tue Aug 17 16:54:19 2010
@@ -1135,13 +1135,16 @@
// Find the process and its architecture. Make sure it matches the architecture
// of the current Target, and if not adjust it.
- ArchSpec attach_spec = GetArchSpecForExistingProcess (process_name);
- if (attach_spec != GetTarget().GetArchitecture())
+ if (!wait_for_launch)
- // Set the architecture on the target.
+ ArchSpec attach_spec = GetArchSpecForExistingProcess (process_name);
+ if (attach_spec != GetTarget().GetArchitecture())
+ // Set the architecture on the target.
Error error (WillAttachToProcessWithName(process_name, wait_for_launch));
More information about the lldb-commits