[all-commits] [llvm/llvm-project] ced4e0: Fix inconsistent target arch when attaching to arm...

Adrian Prantl via All-commits all-commits at lists.llvm.org
Thu Sep 1 16:39:59 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ced4e0006fab22f37a165635896a6776f79bc4a9
      https://github.com/llvm/llvm-project/commit/ced4e0006fab22f37a165635896a6776f79bc4a9
  Author: Adrian Prantl <aprantl at apple.com>
  Date:   2022-09-01 (Thu, 01 Sep 2022)

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

  Log Message:
  -----------
  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




More information about the All-commits mailing list