This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Question about resolving symbol information from so's loaded via dlopen.
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Kevin Sharpie Endres <kevine at wildseed dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 8 Nov 2002 18:16:55 -0500
- Subject: Re: Question about resolving symbol information from so's loaded via dlopen.
- References: <43CB1396676FD4119F03001083FD299401547970@neptune.kirkland.local>
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