[lldb-dev] How to load core on a different machine? - image base addresses

Jim Ingham via lldb-dev lldb-dev at lists.llvm.org
Thu Jan 7 10:34:31 PST 2016


> On Jan 7, 2016, at 9:54 AM, Greg Clayton via lldb-dev <lldb-dev at lists.llvm.org> wrote:
> 
> See if you see the "ELF\x7d" magic byte string. If so, then this is definitely the address you are looking for. You can also set a breakpoint when the shared libraries get loaded and see where the image is being loaded since I believe the POSIX Dynamic Loader loads things using a single address that it gets from somewhere. This address that is used by the dynamic loader should be the address that is displayed...

Note, you shouldn't need to set a breakpoint to inspect this, just put:

settings set target.process.stop-on-sharedlibrary-events 1

and lldb will stop when the libraries load.

Jim




More information about the lldb-dev mailing list