[Lldb-commits] [lldb] r111302 - /lldb/trunk/source/Target/Process.cpp

Jim Ingham jingham at apple.com
Tue Aug 17 14:54:19 PDT 2010


Author: jingham
Date: Tue Aug 17 16:54:19 2010
New Revision: 111302

URL: http://llvm.org/viewvc/llvm-project?rev=111302&view=rev
Log:
Don't try to get the architecture up front when doing attach -w.

Modified:
    lldb/trunk/source/Target/Process.cpp

Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=111302&r1=111301&r2=111302&view=diff
==============================================================================
--- 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.
-        GetTarget().SetArchitecture(attach_spec);
+        ArchSpec attach_spec = GetArchSpecForExistingProcess (process_name);
+        if (attach_spec != GetTarget().GetArchitecture())
+        {
+            // Set the architecture on the target.
+            GetTarget().SetArchitecture(attach_spec);
+        }
     }
-
+    
     Error error (WillAttachToProcessWithName(process_name, wait_for_launch));
     if (error.Success())
     {





More information about the lldb-commits mailing list