Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* how does gdb read type descriptions for structures
@ 2003-08-22  8:27 Roul Oldenburger
  2003-08-22 12:52 ` Daniel Jacobowitz
  0 siblings, 1 reply; 2+ messages in thread
From: Roul Oldenburger @ 2003-08-22  8:27 UTC (permalink / raw)
  To: gdb

Hello everyone,

most time I am only using gdb and most time via ddd but I have got a 
question for gdb internals.

I am trying to reconstruct type descriptions for a tree of structures 
from stabs debug informations included in executables.

Using for example 'ptype my_structure' in gdb delivers me components and 
types of my_structure but it looks like gdb prints part of the source 
code ... or does it evaluate its symbol tables or stabs information via 
BFD directly?

Furthermore I need to know the offset/address of each component of each 
substructure in the structure tree ... we are using quit complex 
structures.

Using 'objdump --stabs' I will get all the information/ type 
descriptions I need but I hope there is another way to retrieve this 
information rather than working it out from the text in .stabstr.

How does gdb does it?

Thanks for your help

Roul Oldenburger


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

* Re: how does gdb read type descriptions for structures
  2003-08-22  8:27 how does gdb read type descriptions for structures Roul Oldenburger
@ 2003-08-22 12:52 ` Daniel Jacobowitz
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2003-08-22 12:52 UTC (permalink / raw)
  To: Roul Oldenburger; +Cc: gdb

On Fri, Aug 22, 2003 at 10:29:38AM +0200, Roul Oldenburger wrote:
> Hello everyone,
> 
> most time I am only using gdb and most time via ddd but I have got a 
> question for gdb internals.
> 
> I am trying to reconstruct type descriptions for a tree of structures 
> from stabs debug informations included in executables.
> 
> Using for example 'ptype my_structure' in gdb delivers me components and 
> types of my_structure but it looks like gdb prints part of the source 
> code ... or does it evaluate its symbol tables or stabs information via 
> BFD directly?
> 
> Furthermore I need to know the offset/address of each component of each 
> substructure in the structure tree ... we are using quit complex 
> structures.
> 
> Using 'objdump --stabs' I will get all the information/ type 
> descriptions I need but I hope there is another way to retrieve this 
> information rather than working it out from the text in .stabstr.
> 
> How does gdb does it?

From the debug info - i.e. the text in .stabstr.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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

end of thread, other threads:[~2003-08-22 12:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-22  8:27 how does gdb read type descriptions for structures Roul Oldenburger
2003-08-22 12:52 ` Daniel Jacobowitz

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