From ced4e0006fab22f37a165635896a6776f79bc4a9 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Wed, 31 Aug 2022 16:14:09 -0700 Subject: Fix inconsistent target arch when attaching to arm64 binaries on arm64e platforms. On arm64e-capable Apple platforms, the system libraries are always arm64e, but applications often are arm64. When a target is created from file, LLDB recognizes it as an arm64 target, but debugserver will still (technically correct) report the process as being arm64e. For consistency, set the target to arm64 here. rdar://92248684 Differential Revision: https://reviews.llvm.org/D133069 --- lldb/packages/Python/lldbsuite/test/gdbclientutils.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lldb/packages/Python/lldbsuite/test/gdbclientutils.py') diff --git a/lldb/packages/Python/lldbsuite/test/gdbclientutils.py b/lldb/packages/Python/lldbsuite/test/gdbclientutils.py index 68ac0e0..7e78963 100644 --- a/lldb/packages/Python/lldbsuite/test/gdbclientutils.py +++ b/lldb/packages/Python/lldbsuite/test/gdbclientutils.py @@ -185,6 +185,8 @@ class MockGDBServerResponder: return self.qsProcessInfo() if packet.startswith("qfProcessInfo"): return self.qfProcessInfo(packet) + if packet.startswith("jGetLoadedDynamicLibrariesInfos"): + return self.jGetLoadedDynamicLibrariesInfos(packet) if packet.startswith("qPathComplete:"): return self.qPathComplete() if packet.startswith("vFile:"): @@ -211,6 +213,9 @@ class MockGDBServerResponder: def qfProcessInfo(self, packet): return "E04" + def jGetLoadedDynamicLibrariesInfos(self, packet): + return "" + def qGetWorkingDir(self): return "2f" -- cgit v1.1