diff options
author | Greg Clayton <gclayton@apple.com> | 2014-05-29 21:33:45 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2014-05-29 21:33:45 +0000 |
commit | 7ab7f89ae0221b11d25b5554b0b38ff4a8188819 (patch) | |
tree | 95b143f03fce4304751874cebfe859d7f2bf67e9 /lldb/source/Plugins/Process/gdb-remote | |
parent | c1146ec5badb4eb1b14d423d4305e698144dc5a4 (diff) | |
download | bcm5719-llvm-7ab7f89ae0221b11d25b5554b0b38ff4a8188819.tar.gz bcm5719-llvm-7ab7f89ae0221b11d25b5554b0b38ff4a8188819.zip |
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
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp index ab4ed4c5932..9b9fef98c74 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp @@ -2440,10 +2440,11 @@ GDBRemoteCommunicationClient::GetCurrentProcessInfo () { assert (pointer_byte_size == m_process_arch.GetAddressByteSize()); } + m_process_arch.GetTriple().setOSName(llvm::StringRef (os_name)); m_host_arch.GetTriple().setVendorName (llvm::StringRef (vendor_name)); m_host_arch.GetTriple().setOSName (llvm::StringRef (os_name)); - return true; } + return true; } } else |