[Lldb-commits] [lldb] r214600 - Now that setting an architecture from a mach-o CPU type and subtype doesn't set the OS type, make sure to set it.

Greg Clayton gclayton at apple.com
Fri Aug 1 17:15:38 PDT 2014


Author: gclayton
Date: Fri Aug  1 19:15:37 2014
New Revision: 214600

URL: http://llvm.org/viewvc/llvm-project?rev=214600&view=rev
Log:
Now that setting an architecture from a mach-o CPU type and subtype doesn't set the OS type, make sure to set it.


Modified:
    lldb/trunk/source/Host/macosx/Host.mm

Modified: lldb/trunk/source/Host/macosx/Host.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/macosx/Host.mm?rev=214600&r1=214599&r2=214600&view=diff
==============================================================================
--- lldb/trunk/source/Host/macosx/Host.mm (original)
+++ lldb/trunk/source/Host/macosx/Host.mm Fri Aug  1 19:15:37 2014
@@ -1061,6 +1061,8 @@ GetMacOSXProcessArgs (const ProcessInsta
                         {
                             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);





More information about the lldb-commits mailing list