[all-commits] [llvm/llvm-project] 794d20: Don't load non-kexts in darwin kernel debug; handl...

Jason Molenda via All-commits all-commits at lists.llvm.org
Wed Mar 8 16:51:46 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 794d2089cd741135b60e94ac2495174a03b38143
      https://github.com/llvm/llvm-project/commit/794d2089cd741135b60e94ac2495174a03b38143
  Author: Jason Molenda <jason at molenda.com>
  Date:   2023-03-08 (Wed, 08 Mar 2023)

  Changed paths:
    M lldb/source/Plugins/DynamicLoader/Darwin-Kernel/CMakeLists.txt
    M lldb/source/Plugins/DynamicLoader/Darwin-Kernel/DynamicLoaderDarwinKernel.cpp
    M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
    M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h

  Log Message:
  -----------
  Don't load non-kexts in darwin kernel debug; handle unslid segs

We have some non-kexts in the binary list in the Darwin kernel
in some situations.  The binary has likely already been loaded;
check if it has been, and don't re-load it.  Also, if we do need
to load it at this point, if in-memory segment vmaddrs have not
been updated to the actual load addresses, calculate a fixed slide
for the in-memory image and apply that slide to the ondisk binary.

Differential Revision: https://reviews.llvm.org/D145547
rdar://106343477




More information about the All-commits mailing list