summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-08-02 00:15:37 +0000
committerGreg Clayton <gclayton@apple.com>2014-08-02 00:15:37 +0000
commit7fde1b3b831fa84920d4e2d344f0e210545ab5b9 (patch)
tree70cbae3c9657441b1da081708707b94015a48e9d /lldb/source
parent064896bbc59a84e34efca221895927ca79c17fa5 (diff)
downloadbcm5719-llvm-7fde1b3b831fa84920d4e2d344f0e210545ab5b9.tar.gz
bcm5719-llvm-7fde1b3b831fa84920d4e2d344f0e210545ab5b9.zip
Now that setting an architecture from a mach-o CPU type and subtype doesn't set the OS type, make sure to set it.
llvm-svn: 214600
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Host/macosx/Host.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Host/macosx/Host.mm b/lldb/source/Host/macosx/Host.mm
index 69b65fbf2c6..6b5ca51efb0 100644
--- a/lldb/source/Host/macosx/Host.mm
+++ b/lldb/source/Host/macosx/Host.mm
@@ -1061,6 +1061,8 @@ GetMacOSXProcessArgs (const ProcessInstanceInfoMatch *match_info_ptr,
{
if (strncmp(cstr, "SIMULATOR_UDID=", strlen("SIMULATOR_UDID=")) == 0)
process_info.GetArchitecture().GetTriple().setOS(llvm::Triple::IOS);
+ else
+ process_info.GetArchitecture().GetTriple().setOS(llvm::Triple::MacOSX);
}
proc_env.AppendArgument(cstr);
OpenPOWER on IntegriCloud