From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22660 invoked by alias); 18 Nov 2003 16:01:21 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 22652 invoked from network); 18 Nov 2003 16:01:18 -0000 Received: from unknown (HELO mail86.defence-elec.de) (194.221.176.185) by sources.redhat.com with SMTP; 18 Nov 2003 16:01:18 -0000 Received: from vssrv11.defence-elec.de (unknown [10.199.101.18]) by mail86.defence-elec.de (Postfix) with SMTP id E051613925 for ; Tue, 18 Nov 2003 17:01:17 +0100 (CET) Received: from mgsrv11.defence-elec.de ([10.199.101.16]) by vssrv11.defence-elec.de (NAVGW 2.5.1.2) with SMTP id M2003111817013522051 for ; Tue, 18 Nov 2003 17:01:35 +0100 Received: by mgsrv11.defence-elec.de (Postfix, from userid 65534) id 9D7BA3FF9; Tue, 18 Nov 2003 16:58:56 +0100 (CET) Received: from rheinmetall-de.com (nspc140.defence-elec.de [141.200.143.140]) by mgsrv11.defence-elec.de (Postfix) with ESMTP id 509D53FE3 for ; Tue, 18 Nov 2003 16:58:55 +0100 (CET) Message-ID: <3FBA41DC.6050209@rheinmetall-de.com> Date: Tue, 18 Nov 2003 16:01:00 -0000 From: Roul Oldenburger Organization: Rheinmetall Defence Electronic User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: de-de, en-us, en MIME-Version: 1.0 To: gdb@sources.redhat.com Subject: debuginformation generated by GNAT Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-5.2 required=5.0 tests=BAYES_00,USER_AGENT_MOZILLA_UA version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-SW-Source: 2003-11/txt/msg00146.txt.bz2 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