[Lldb-commits] [PATCH] D130813: Add ability for lldb to load binaries in a process/corefile given only a load address & no dynamic loader

Jason Molenda via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Aug 1 17:48:48 PDT 2022


jasonmolenda updated this revision to Diff 449159.
jasonmolenda added a comment.

I was using an obsoleted linker flag to seg the vmaddrs of two dylibs and laying them out there in the corefile.  This won't work long-term, and I really wanted to make sure lldb will slide binaries correctly, so I added a new feature to my corefile creator which will apply a slide to the binaries it puts in the corefiles, modifying the segment/section load commands with the slid vmaddrs as if dyld had put them there.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130813/new/

https://reviews.llvm.org/D130813

Files:
  lldb/docs/lldb-gdb-remote.txt
  lldb/include/lldb/Target/DynamicLoader.h
  lldb/source/Core/DynamicLoader.cpp
  lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
  lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
  lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
  lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
  lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp
  lldb/test/API/macosx/lc-note/multiple-binary-corefile/Makefile
  lldb/test/API/macosx/lc-note/multiple-binary-corefile/TestMultipleBinaryCorefile.py
  lldb/test/API/macosx/lc-note/multiple-binary-corefile/create-multibin-corefile.cpp
  lldb/test/API/macosx/lc-note/multiple-binary-corefile/main.c
  lldb/test/API/macosx/lc-note/multiple-binary-corefile/one.c
  lldb/test/API/macosx/lc-note/multiple-binary-corefile/two.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130813.449159.patch
Type: text/x-patch
Size: 53049 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220802/669ca959/attachment-0001.bin>


More information about the lldb-commits mailing list