summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2014-05-29 21:33:45 +0000
committerGreg Clayton <gclayton@apple.com>2014-05-29 21:33:45 +0000
commit7ab7f89ae0221b11d25b5554b0b38ff4a8188819 (patch)
tree95b143f03fce4304751874cebfe859d7f2bf67e9 /lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
parentc1146ec5badb4eb1b14d423d4305e698144dc5a4 (diff)
downloadbcm5719-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/ObjectFile/Mach-O/ObjectFileMachO.h')
-rw-r--r--lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
index dff0b21be80..7b09e5f8bdd 100644
--- a/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
+++ b/lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
@@ -182,6 +182,12 @@ protected:
lldb::offset_t lc_offset, // Offset to the first load command
lldb_private::UUID& uuid);
+ static bool
+ GetArchitecture (const llvm::MachO::mach_header &header,
+ const lldb_private::DataExtractor &data,
+ lldb::offset_t lc_offset,
+ lldb_private::ArchSpec &arch);
+
// Intended for same-host arm device debugging where lldb needs to
// detect libraries in the shared cache and augment the nlist entries
// with an on-disk dyld_shared_cache file. The process will record
OpenPOWER on IntegriCloud