[Lldb-commits] [PATCH] D157756: Support corefiles that put the uuid of their binary in a fixed address in low memory; load that binary

Jason Molenda via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Aug 11 13:52:31 PDT 2023


jasonmolenda created this revision.
jasonmolenda added a reviewer: jingham.
jasonmolenda added a project: LLDB.
Herald added a subscriber: JDevlieghere.
Herald added a project: All.
jasonmolenda requested review of this revision.
Herald added a subscriber: lldb-commits.

There are some Mach-O corefiles that store the UUID of the main binary at a list of fixed addresses in low memory, prefixed with the characters 'uuid' 16 bytes before the 16-byte uuid itself.  This patch adds check in ProcessMachCore for this situation if we haven't found more authoritative metadata about the binary to load, tries to find the binary for that UUID and loads it in to the target with a slide of 0.  It's uncommon, but it would be nice if it was handled automatically and it's easy to drop in to ProcessMachCore at this point given the work I've been doing recently.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157756

Files:
  lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp
  lldb/source/Plugins/Process/mach-core/ProcessMachCore.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157756.549514.patch
Type: text/x-patch
Size: 4410 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230811/c5166bda/attachment.bin>


More information about the lldb-commits mailing list