I'm trying to remote debug a dynamically loaded shared object (via dlopen) with the LLDB/LLDB Server. I have noticed that the debug symbols are not automatically loaded in this case.
When using the GDB for similar purposes I have used the 'set auto-solib-add on' configuration to instruct the GDB that new loaded shared objects and their symbols will be automatically added/loaded.
Is there some equivalent option for the LLDB?
lldb has no set auto-solib-add off
, this behavior is always on. You can use the lldb command image list <my_dylib_name.dylib>
to see whether lldb was notified of the image being loaded by dyld. The mechanism that informs lldb about shared library loads is pretty straight-forward, I would be surprised if we weren't told about the library loading. The various mechanisms to get from a dylib to its debug information are more complex, most likely there's something going wrong there.