Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Kevin Sharpie Endres <kevine@wildseed.com>
Cc: gdb@sources.redhat.com
Subject: Re: Question about resolving symbol information from so's loaded via dlopen.
Date: Fri, 08 Nov 2002 15:15:00 -0000	[thread overview]
Message-ID: <20021108231655.GA17862@nevyn.them.org> (raw)
In-Reply-To: <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


      reply	other threads:[~2002-11-08 23:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-08 15:02 Kevin "Sharpie" Endres
2002-11-08 15:15 ` Daniel Jacobowitz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021108231655.GA17862@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    --cc=kevine@wildseed.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox