lldb handling of dyld shared cache

[I've already asked this on llvm discourse, no answer yet]

Can someone give me a brief intro or point me to documentation that describes how lldb handles the dyld shared cache on macOS?

I’m trying to evaluate how to implement the same functionality in Valgrind. Prior to macOS 11 Big Sur Valgrind used DYLD_SHARED_REGION=avoid to force loading the libraries and then to bypass the cache and so to trigger reading the mach-o info to be able to redirect malloc/pthread functions. Without these redirs not much is working correctly.

lldb handling of dyld shared cache
 
 
Q