This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Helping GDB to find symbols
- To: Jacques-Olivier Goussard <jgoussard at nuance dot com>
- Subject: Re: Helping GDB to find symbols
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 30 Apr 2001 12:39:19 -0400
- Cc: gdb at sourceware dot cygnus dot com
- References: <NEBBKPBKLKFJPDFPMBDIAEPOCBAA.jgoussard@nuance.com>
Jacques-Olivier Goussard wrote:
>
> Hi all
> I hope that the proper list to send this...
> I have the following pb: I shipp products with no debug information,
> so when a customer has a core dump, I need to fall back on assembly
> output to try to tackle the pb.
> As I have access to the source code and the debug-compiled product,
> I was wondering if there was a mean to *help* GDB and provide it with
> some of the debug info.
> For ex, let say the prg crashed in function A, then GDB should be able
> to calculate the address of the args to A in the non-debug core. Then,
> finding the function in the debug-compiled library (may be with a little
> help), it should be able to load the defs of the args and show the values
> of each args properly.
> Is there a way to do that, or is this an enhancement to be added or is it
> a totally new idea that nobody thought about before (unlikely I guess) ?
> May be it can not be done ?
Check the command ``symbol-file'' in the user documentation. It should
do exactly what you want.
Andrew