Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* debuginformation generated by GNAT
@ 2003-11-18 16:01 Roul Oldenburger
  2003-11-18 18:51 ` Joel Brobecker
  0 siblings, 1 reply; 8+ messages in thread
From: Roul Oldenburger @ 2003-11-18 16:01 UTC (permalink / raw)
  To: gdb

Hello everybody,

I was looking for explanation for certain debug symbols gnat generated 
from our ada sources. Joel pointed me to exp_debug.ads where most of my 
questions were answered, but now I am in trouble again.

Trying to reconstruct structure type trees from debuginformation given 
by binutils objdump and parsed by a program of mine ... I got stuck 
where I have to compute the size of an ___XVL component (entity with 
variable length) which is an array.

(objdump output)
.
.
struct gen_siso_common_types__bdt_spectral_description___XVE { /* size 4 
id 1546 */
   gen_siso_common_types__bdt_spectral_description__T73s *cas___XVL; /* 
bitsize 32, bitpos 0 */
   gen_siso_common_types__bdt_spectral_description__T75s *fas___XVL4; /* 
bitsize 32, bitpos 0 */
   gen_siso_common_types__bdt_spectral_description__T77s *tas___XVL4; /* 
bitsize 32, bitpos 0 */
};
.
.

(corresponding ada code)
.
.
    type Spectral_Table is
       array (Index range <>) of Basic.Float32; -- Intensitaetsfaktoren

    type Bdt_Spectral_Description is
       record
          Cas : Spectral_Table(1 .. Bdt_Cas_Bands); -- BDT-Spektrum CAS
          Fas : Spectral_Table(1 .. Bdt_Fas_Bands); -- BDT-Spektrum FAS
          Tas : Spectral_Table(1 .. Bdt_Tas_Bands); -- BDT-Spektrum TAS
       end record;
.
.

When I understood exp_debug.ads right I cannot compute the size of such 
array ... but the debugger surely knows it.

Can someone help?


Thanks very much
Roul


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

end of thread, other threads:[~2003-12-09 20:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-18 16:01 debuginformation generated by GNAT Roul Oldenburger
2003-11-18 18:51 ` Joel Brobecker
2003-11-20 15:49   ` Roul Oldenburger
2003-11-20 18:20     ` Joel Brobecker
2003-11-21 14:58       ` Roul Oldenburger
2003-11-21 19:46         ` Joel Brobecker
2003-11-24 14:19           ` Roul Oldenburger
2003-12-09 20:37             ` Joel Brobecker

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