[Lldb-commits] [PATCH] D92187: [lldb] [FreeBSD] Fix establishing DT_NEEDED libraries from dyld

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Nov 26 08:56:21 PST 2020


mgorny created this revision.
mgorny added reviewers: labath, emaste, krytarowski.
Herald added a subscriber: arichardson.
mgorny requested review of this revision.

Always set up entry point breakpoint on FreeBSD in order to establish
the initial list of loaded libraries.  Normally this list is created
through dyld library load events but apparently these are not emitted
for DT_NEEDED libraries on FreeBSD, only for libraries loaded
afterwards.

This makes it possible to reenable memory maps and therefore let
the related tests pass.


https://reviews.llvm.org/D92187

Files:
  lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
  lldb/source/Plugins/Process/FreeBSDRemote/NativeProcessFreeBSD.cpp
  lldb/test/API/functionalities/memory-region/TestMemoryRegion.py
  lldb/test/API/tools/lldb-server/TestLldbGdbServer.py
  lldb/test/API/tools/lldb-server/libraries-svr4/TestGdbRemoteLibrariesSvr4Support.py
  lldb/test/Shell/Unwind/thread-step-out-ret-addr-check.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92187.307887.patch
Type: text/x-patch
Size: 5260 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20201126/0ad57405/attachment.bin>


More information about the lldb-commits mailing list