aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2022-08-31 16:14:09 -0700
committerAdrian Prantl <aprantl@apple.com>2022-09-01 16:39:35 -0700
commitced4e0006fab22f37a165635896a6776f79bc4a9 (patch)
treee59361b0f35349075a3f8e2db5717525c5e61f47 /lldb/packages/Python/lldbsuite/test
parent3ae98fd259e56fcc22f9387eca56c178f17eaf89 (diff)
downloadllvm-ced4e0006fab22f37a165635896a6776f79bc4a9.zip
llvm-ced4e0006fab22f37a165635896a6776f79bc4a9.tar.gz
llvm-ced4e0006fab22f37a165635896a6776f79bc4a9.tar.bz2
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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/gdbclientutils.py5
1 files changed, 5 insertions, 0 deletions
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"