[Lldb-commits] [lldb] [lldb][DynamicLoader] Fix lldb unable to stop at _dl_debug_state if user set it before the process launched. (PR #88792)

Zequan Wu via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 16 08:28:24 PDT 2024


ZequanWu wrote:

> I'm missing why the _dl_debug_state breakpoint is special here, such that it requires a force load of the section info? How does that happen?

Jason's comment explains it well. It's because ld.so's loading is special here. Normal binaries are loaded via `DynamicLoaderPOSIXDYLD::RefreshModules` which updates loaded section addresses.

https://github.com/llvm/llvm-project/pull/88792


More information about the lldb-commits mailing list