SuccessChanges

Summary

  1. [lldb] [POSIX-DYLD] Add libraries from initial rendezvous brkpt hit (details)
  2. [lldb] [POSIX-DYLD] Update the cached exe path after attach (details)
Commit 8666b9057f23badfe90548297f3c01937daa4a9c by mgorny
[lldb] [POSIX-DYLD] Add libraries from initial rendezvous brkpt hit

Explicitly consider the libraries reported on the initial rendezvous
breakpoint hit added.  This is necessary on FreeBSD since the dynamic
loader issues only a single 'consistent' state rendezvous breakpoint hit
for all the libraries present in DT_NEEDED.  It is also helpful on Linux
where it ensures that ld-linux is considered loaded as well
as the shared system libraries reported afterwards.

Reenable memory maps on FreeBSD since this fixed the issue triggered
by them.

Differential Revision: https://reviews.llvm.org/D92187
The file was modifiedlldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.h
The file was modifiedlldb/test/API/functionalities/memory-region/TestMemoryRegion.py
The file was modifiedlldb/test/API/tools/lldb-server/TestLldbGdbServer.py
The file was modifiedlldb/test/API/tools/lldb-server/libraries-svr4/TestGdbRemoteLibrariesSvr4Support.py
The file was modifiedlldb/test/API/functionalities/breakpoint/global_constructor/TestBreakpointInGlobalConstructor.py
The file was modifiedlldb/test/API/api/multithreaded/TestMultithreaded.py
The file was modifiedlldb/test/Shell/Unwind/thread-step-out-ret-addr-check.test
The file was modifiedlldb/source/Plugins/Process/FreeBSDRemote/NativeProcessFreeBSD.cpp
The file was modifiedlldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
Commit dbfdb139f75470a9abc78e7c9faf743fdd963c2d by mgorny
[lldb] [POSIX-DYLD] Update the cached exe path after attach

Fix the POSIX-DYLD plugin to update the cached executable path after
attaching.  Previously, the path was cached in DYLDRendezvous
constructor and not updated afterwards.  This meant that if LLDB was
attaching to a process (e.g. via connecting to lldb-server), the code
stored the empty path before DidAttach() resolved it.  The fix updates
the cached path in DidAttach().

This fixes a new instance of https://llvm.org/pr17880

Differential Revision: https://reviews.llvm.org/D92264
The file was modifiedlldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.cpp
The file was modifiedlldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
The file was modifiedlldb/test/API/commands/process/attach/main.cpp
The file was modifiedlldb/source/Plugins/DynamicLoader/POSIX-DYLD/DYLDRendezvous.h
The file was modifiedlldb/test/API/commands/process/attach/TestProcessAttach.py