This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Loading shared libraries when cross-debugging a core file
- From: Ian Wells <ijw dot gdb at cack dot org dot uk>
- To: gdb at sourceware dot org
- Date: Thu, 12 Jan 2012 21:35:53 +0100
- Subject: Loading shared libraries when cross-debugging a core file
I'm trying to pin down an issue I'm having with shared libraries not
being autoloaded, with no error message, when I cross-debug a ppc
(Linux / ELF) core file on a cross-debugger compiled on Linux /
x86_64.
If I debug the core file using a native gdb in the ppc environment,
the libraries are autoloaded as expected when the core file is loaded.
When I do the same in the x86 environment, they aren't.
I understand that I will need to point gdb in to the location of the
library files - this documentation suggests this is the 'sysroot'
setting, so I've tried running gdb, setting it and then loading symbol
and core files.? No joy.
Loading the files individually and specifying their address works, but
is far from ideal.
Can anyone help?? If not with a straightforward answer, can someone
point me to the code in gdb that identifies which libraries are loaded
so that I can work out what it's doing?
Thanks,
--
Ian.