[Lldb-commits] [PATCH] D128956: make debugserver able to inspect mach-o binaries present in memory, but not yet registered with dyld

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 30 16:56:06 PDT 2022


JDevlieghere added inline comments.


================
Comment at: lldb/tools/debugserver/source/MacOSX/MachProcess.mm:1186-1191
+      // dyld doesn't think there is a binary at this address,
+      // but maybe there isn't a binary YET - let's look in memory
+      // for a proper mach-o header etc and return what we can.
+      // We will have an empty filename for the binary (because dyld
+      // doesn't know about it yet) but we can read all of the mach-o
+      // load commands from memory directly.
----------------
What happens when it turns out that there's no Mach-O header at this load address? I expect it doesn't end up in the `jGetLoadedDynamicLibrariesInfos` response then? Where does this filtering take place?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D128956



More information about the lldb-commits mailing list