summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2012-06-05 21:17:09 +0000
committerGreg Clayton <gclayton@apple.com>2012-06-05 21:17:09 +0000
commit8ae50eb4a6c44f25e82571a5b7015d0ab1075393 (patch)
tree67fa558cc34c69e58628be68653d1b5e024d36d5
parent3da28f80e388de2520433066d3db32b3460bb885 (diff)
downloadbcm5719-llvm-8ae50eb4a6c44f25e82571a5b7015d0ab1075393.tar.gz
bcm5719-llvm-8ae50eb4a6c44f25e82571a5b7015d0ab1075393.zip
<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> llvm-svn: 158023
-rw-r--r--lldb/source/Target/TargetList.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Target/TargetList.cpp b/lldb/source/Target/TargetList.cpp
index 3aaa77925e2..34abd43e0a6 100644
--- a/lldb/source/Target/TargetList.cpp
+++ b/lldb/source/Target/TargetList.cpp
@@ -165,6 +165,10 @@ TargetList::CreateTarget
if (!platform_sp)
platform_sp = debugger.GetPlatformList().GetSelectedPlatform();
+ if (!arch.IsValid())
+ arch = specified_arch;
+
+
if (file)
{
ModuleSP exe_module_sp;
OpenPOWER on IntegriCloud