[Lldb-commits] [PATCH] D133069: Fix inconsistent target arch when attaching to arm64 binaries on arm64e platforms.

Adrian Prantl via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 31 16:17:56 PDT 2022


aprantl created this revision.
aprantl added reviewers: JDevlieghere, jasonmolenda.
Herald added subscribers: omjavaid, kristof.beyls.
Herald added a project: All.
aprantl requested review of this revision.

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


https://reviews.llvm.org/D133069

Files:
  lldb/include/lldb/Target/Target.h
  lldb/packages/Python/lldbsuite/test/gdbclientutils.py
  lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp
  lldb/source/Target/Target.cpp
  lldb/test/API/functionalities/gdb_remote_client/TestDynamicLoaderDarwin.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133069.457130.patch
Type: text/x-patch
Size: 10291 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220831/600adbdf/attachment.bin>


More information about the lldb-commits mailing list