Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Question about resolving symbol information from so's loaded via  dlopen.
@ 2002-11-08 15:02 Kevin "Sharpie" Endres
  2002-11-08 15:15 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin "Sharpie" Endres @ 2002-11-08 15:02 UTC (permalink / raw)
  To: gdb

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Question about resolving symbol information from so's loaded via dlopen.
  2002-11-08 15:02 Question about resolving symbol information from so's loaded via dlopen Kevin "Sharpie" Endres
@ 2002-11-08 15:15 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2002-11-08 15:15 UTC (permalink / raw)
  To: Kevin Sharpie Endres; +Cc: gdb

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-08 23:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-08 15:02 Question about resolving symbol information from so's loaded via dlopen Kevin "Sharpie" Endres
2002-11-08 15:15 ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox