summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/MacOSX/MachProcess.h
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2019-08-07 02:06:06 +0000
committerJason Molenda <jmolenda@apple.com>2019-08-07 02:06:06 +0000
commit6cebeafac31ceb500494bb301e365363c3d5992a (patch)
tree16a638ce3fb606f94e88888cfb760d92adea94ba /lldb/tools/debugserver/source/MacOSX/MachProcess.h
parent5dbfca85419bda9d432ec43f7ea54d64ee2aab55 (diff)
downloadbcm5719-llvm-6cebeafac31ceb500494bb301e365363c3d5992a.tar.gz
bcm5719-llvm-6cebeafac31ceb500494bb301e365363c3d5992a.zip
Upstream a few small Apple changes to debugserver - arm64_32, Catalyst
Adrian's changes to support Catalyst processes and my changes to support debugserver running on an arm64_32 device (Apple Watch Series 4, which uses an IPL32 model on arm64 cpus). llvm-svn: 368118
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX/MachProcess.h')
-rw-r--r--lldb/tools/debugserver/source/MacOSX/MachProcess.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachProcess.h b/lldb/tools/debugserver/source/MacOSX/MachProcess.h
index 0b8e1f4d4a5..e31486cc39b 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachProcess.h
+++ b/lldb/tools/debugserver/source/MacOSX/MachProcess.h
@@ -116,6 +116,7 @@ public:
#endif
static bool GetOSVersionNumbers(uint64_t *major, uint64_t *minor,
uint64_t *patch);
+ static std::string GetMacCatalystVersionString();
#ifdef WITH_BKS
static void BKSCleanupAfterAttach(const void *attach_token,
DNBError &err_str);
@@ -233,12 +234,13 @@ public:
GetDeploymentInfo(const struct load_command&, uint64_t load_command_address,
uint32_t& major_version, uint32_t& minor_version,
uint32_t& patch_version);
- bool GetMachOInformationFromMemory(nub_addr_t mach_o_header_addr,
+ bool GetMachOInformationFromMemory(uint32_t platform,
+ nub_addr_t mach_o_header_addr,
int wordsize,
struct mach_o_information &inf);
JSONGenerator::ObjectSP FormatDynamicLibrariesIntoJSON(
const std::vector<struct binary_image_information> &image_infos);
- void GetAllLoadedBinariesViaDYLDSPI(
+ uint32_t GetAllLoadedBinariesViaDYLDSPI(
std::vector<struct binary_image_information> &image_infos);
JSONGenerator::ObjectSP GetLoadedDynamicLibrariesInfos(
nub_process_t pid, nub_addr_t image_list_address, nub_addr_t image_count);
@@ -425,6 +427,7 @@ private:
const uuid_t uuid, const char *path));
void (*m_dyld_process_info_release)(void *info);
void (*m_dyld_process_info_get_cache)(void *info, void *cacheInfo);
+ uint32_t (*m_dyld_process_info_get_platform)(void *info);
};
#endif // __MachProcess_h__
OpenPOWER on IntegriCloud