Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Helping GDB to find symbols
@ 2001-04-30  9:16 Jacques-Olivier Goussard
  2001-04-30  9:24 ` Eli Zaretskii
  2001-04-30  9:39 ` Andrew Cagney
  0 siblings, 2 replies; 12+ messages in thread
From: Jacques-Olivier Goussard @ 2001-04-30  9:16 UTC (permalink / raw)
  To: gdb

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 ?

	Jacques-Olivier

Jacques-Olivier Goussard
Software Developer
jgoussard@nuance.com
Tel: (514) 732 4918 



^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: Helping GDB to find symbols
@ 2001-05-01  6:20 Nicolas.Thery
  0 siblings, 0 replies; 12+ messages in thread
From: Nicolas.Thery @ 2001-05-01  6:20 UTC (permalink / raw)
  To: Jacques-Olivier Goussard; +Cc: gdb, gdb-owner

> I do not think the addresses are the same in stripped and unstripped:
just
> run
> nm on the same library for debug and non-debug build and you'll see the
> symbols are not at the same address.

What do you mean by debug and non-debug builds?

Are you sure that both builds are done with exactly the same compiler flags
(except -g)?

In particular if the non-debug build uses -O but the debug one doesn't, the
generated
code will be different and so will the symbol's addresses.

Nicolas



**********************************************************************
Symbian Ltd is a company registered in England and Wales with registered number 01796587 and registered office at 19 Harcourt Street, London, W1H 4HF, UK.
This message is intended only for use by the named addressee and may contain privileged and/or confidential information. If you are not the named addressee you should not disseminate, copy or take any action in reliance on it. If you have received this message in error please notify postmaster@symbian.com and delete the message and any attachments accompanying it immediately. Symbian does not accept liability for any corruption, interception, amendment, tampering or viruses occurring to this message in transit or for any message sent by its employees which is not in compliance with Symbian corporate policy.
**********************************************************************


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-05-01 12:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-30  9:16 Helping GDB to find symbols Jacques-Olivier Goussard
2001-04-30  9:24 ` Eli Zaretskii
2001-04-30  9:32   ` Jacques-Olivier Goussard
2001-05-01  1:44     ` Eli Zaretskii
2001-05-01  6:05       ` Jacques-Olivier Goussard
2001-05-01 11:23         ` Eli Zaretskii
2001-05-01 12:19         ` Daniel Berlin
2001-05-01  9:54       ` Daniel Berlin
2001-04-30  9:39 ` Andrew Cagney
2001-05-01  1:44   ` Eli Zaretskii
2001-05-01  9:41     ` Andrew Cagney
2001-05-01  6:20 Nicolas.Thery

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox