Re: debugging core files from other machines with archived symbol files

Erik Gustafsson
2003-08-19T13:21:08Z

Hmm.. Isn't this something you want to be able to do?

Seems to me that everybody that is shipping software to customers would like
to be able to debug crash dumps from customer sites in a simple way.

I'm not sure I understand on what level the problem is. Is this a missing
feature in GDB or missing information in the core file?

Thx,

/Staffan

>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 08:43:42 -0400
>
>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

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.