[Lldb-commits] [lldb] r158023 - /lldb/trunk/source/Target/TargetList.cpp
Greg Clayton
gclayton at apple.com
Tue Jun 5 14:17:09 PDT 2012
Author: gclayton
Date: Tue Jun 5 16:17:09 2012
New Revision: 158023
URL: http://llvm.org/viewvc/llvm-project?rev=158023&view=rev
Log:
<rdar://problem/11597333>
Fixed an issue where LLDB would use armv7-apple-unknown even though armv7-unknown-unknown was specified with the target create command:
(lldb) target create -a armv7-unknown-unknown <executable>
Modified:
lldb/trunk/source/Target/TargetList.cpp
Modified: lldb/trunk/source/Target/TargetList.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/TargetList.cpp?rev=158023&r1=158022&r2=158023&view=diff
==============================================================================
--- lldb/trunk/source/Target/TargetList.cpp (original)
+++ lldb/trunk/source/Target/TargetList.cpp Tue Jun 5 16:17:09 2012
@@ -165,6 +165,10 @@
if (!platform_sp)
platform_sp = debugger.GetPlatformList().GetSelectedPlatform();
+ if (!arch.IsValid())
+ arch = specified_arch;
+
+
if (file)
{
ModuleSP exe_module_sp;
More information about the lldb-commits
mailing list