iOS simulator cleanup to make sure we use "*-apple-ios" for iOS simulator apps and...
authorGreg Clayton <gclayton@apple.com>
Thu, 29 May 2014 21:33:45 +0000 (21:33 +0000)
committerGreg Clayton <gclayton@apple.com>
Thu, 29 May 2014 21:33:45 +0000 (21:33 +0000)
commit7ab7f89ae0221b11d25b5554b0b38ff4a8188819
tree95b143f03fce4304751874cebfe859d7f2bf67e9
parentc1146ec5badb4eb1b14d423d4305e698144dc5a4
iOS simulator cleanup to make sure we use "*-apple-ios" for iOS simulator apps and binaries.

Changes include:
- ObjectFileMachO can now determine if a binary is "*-apple-ios" or "*-apple-macosx" by checking the min OS and SDK load commands
- ArchSpec now says "<arch>-apple-macosx" is equivalent to "<arch>-apple-ios" since the simulator mixes and matches binaries (some from the system and most from the iOS SDK).
- Getting process inforamtion on MacOSX now correctly classifies iOS simulator processes so they have "*-apple-ios" architectures in the ProcessInstanceInfo
- PlatformiOSSimulator can now list iOS simulator processes correctly instead of showing nothing by using:
    (lldb) platform select ios-simulator
    (lldb) platform process list
- debugserver can now properly return "*-apple-ios" for the triple in the process info packets for iOS simulator executables
- GDBRemoteCommunicationClient now correctly passes along the triples it gets for process info by setting the OS in the llvm::Triple correctly

<rdar://problem/17060217>

llvm-svn: 209852
lldb/source/Core/ArchSpec.cpp
lldb/source/Core/Module.cpp
lldb/source/Host/macosx/Host.mm
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
lldb/source/Plugins/Platform/MacOSX/PlatformiOSSimulator.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
lldb/tools/debugserver/source/RNBRemote.cpp