This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about resolving symbol information from so's loaded via dlopen.


On Fri, Nov 08, 2002 at 03:02:50PM -0800, Kevin Sharpie Endres wrote:
> in GDB 5.2.1.
> 
> I am attempting to debug using a core from an application that loads an .so
> via dlopen using an absolute location. When i target the core in gdb - the
> .so's  attempt to load using the absolute path (the core file was not
> generated on my machine) and fail. 
> 
> How do I work around this?
> 
> Thanks in advance.
> 
> :]k

Probably the best thing to do is to set up a directory tree that looks
like the target machine somewhere, and set solib-absolute-prefix to
point to it.  That is,

/opt/tst/lib/libc.so.6
/opt/tst/lib/ld.so.1
/opt/tst/usr/lib/appname/plugin.so

(gdb) set solib-absolute-prefix /opt/tst


-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]