[all-commits] [llvm/llvm-project] 75d268: When loading mach-o corefile, new fallback for fin...

Jason Molenda via All-commits all-commits at lists.llvm.org
Fri Jan 6 10:46:53 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 75d268d1fa607a2a9c814040a8d8d5267b49de4c
      https://github.com/llvm/llvm-project/commit/75d268d1fa607a2a9c814040a8d8d5267b49de4c
  Author: Jason Molenda <jason at molenda.com>
  Date:   2023-01-06 (Fri, 06 Jan 2023)

  Changed paths:
    M lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp

  Log Message:
  -----------
  When loading mach-o corefile, new fallback for finding images

When lldb is reading a user process corefile, it starts by finding
dyld, then finding the dyld_all_image_infos structure in dyld by
symbol name, then getting the list of loaded binaries.  If it fails
to find the structure by name, it can't load binaries.  There is
an additional fallback that this patch adds, which is to look for
this object by the section name it is stored in, if the symbol name
lookup fails.

Differential Revision: https://reviews.llvm.org/D140066
rdar://103369931




More information about the All-commits mailing list