This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: Helping GDB to find symbols
- To: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Subject: RE: Helping GDB to find symbols
- From: Daniel Berlin <dan at www dot cgsoftware dot com>
- Date: Tue, 1 May 2001 12:53:06 -0400 (EDT)
- cc: Jacques-Olivier Goussard <jgoussard at nuance dot com>, <gdb at sourceware dot cygnus dot com>
On Tue, 1 May 2001, Eli Zaretskii wrote:
>
> On Mon, 30 Apr 2001, Jacques-Olivier Goussard wrote:
>
> > > Doesn't it work to say "gdb yourprog core", where `yourprog' is the
> > > unstripped binary and `core' is the core file you get from your
> > > customers?
> > No. I guess it gets mixed up in the addresses and offsets. The stacktrace
> > for example is quite different when I switched to the non-debug to
> > debug binaries (exec and dynamic libraries).
>
> Hmm? I don't understand how is this possible: all the addresses in a
> stripped program should be exactly like in an unstripped one.
> Otherwise, you won't be able to debug the core dump which originated
> from an unstripped program.
Right. I'm with you here. This makes no sense.
>
> Am I missing something?
No,. You are exactly right. He should be able to just use the debug
version with the cor efile.
Unless, of course, his non-debug versions are compiled with different
optimization flags, than his debug versions.
That would do it, I think.
>
> What is your object file format and debug info format, btw?
>