public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Erik Gustafsson <loa_gus@hotmail.com>
Cc: gdb@sources.redhat.com
Subject: Re: debugging core files from other machines with archived symbol files
Date: Tue, 19 Aug 2003 12:43:00 -0000	[thread overview]
Message-ID: <20030819124341.GA17709@nevyn.them.org> (raw)
In-Reply-To: <LC2-LFD208Er8pkpLkT000000ef@hotmail.com>

On Tue, Aug 19, 2003 at 01:25:52PM +0200, Erik Gustafsson wrote:
> Hi,
> 
> I have a problem using gdb in a core file senario:
> 
> A machine with my stripped shared library crashes somewere in the world.
> The core file is sent to me together with information on what version it 
> was that crashed. I have archived non-stripped versions of my shared 
> library, and now I want to get gdb to read the non-stripped version of my 
> shared lib.
> 
> 1: How do I find the base address where the text segment of my lib was 
> loaded?
> 2: How can I tell gdb to load my library from my archive instead of the 
> path where my lib was installed on the customer machine that crashed?
> 
> Is there any way of doing this accept from creating a file system structure 
> matching the one on the machine where the crash occured, and copy the 
> correct version of the non-stripped lib file to that directory?

Not really.  You can use solib-absolute-prefix to move the file
structure around, but it has to look the same.

You can work out the load address by poking around with objdump, and
then load the shared library with add-symbol-file.  But this is not for
the faint of heart.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

  reply	other threads:[~2003-08-19 12:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-19 11:25 Erik Gustafsson
2003-08-19 12:43 ` Daniel Jacobowitz [this message]
2003-08-19 13:21 Erik Gustafsson
2003-08-19 13:29 ` Daniel Jacobowitz
2003-08-19 13:31 ` Paul Koning
2003-08-19 21:36   ` Staffan Gustafsson

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=20030819124341.GA17709@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    --cc=loa_gus@hotmail.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).