[Lldb-commits] [lldb] DynamicLoaderDarwin load images in parallel (PR #110439)

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Sun Oct 6 19:17:58 PDT 2024


jasonmolenda wrote:

Ah, yes Simulator debugging is a bit different than macOS process debugging.  With macOS process debugging -- with lldb and the inferior process running on the same computer -- lldb is using the same shared cache as the inferior process, so to read the libraries it reads them out of its own memory.  (they don't exist as separate binaries on-disk any more anyway - the other alternative would be read them out of inferior memory via debugserver)

A simulator process does will have many libraries that don't exist in the shared cache in lldb's memory, so it will need to read them from a different source -- an on-disk discrete binary, or reading memory via debugserver -- so it makes sense that there could be a performance difference in this case.

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


More information about the lldb-commits mailing list