From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22933 invoked by alias); 9 Dec 2003 20:37:55 -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 22925 invoked from network); 9 Dec 2003 20:37:52 -0000 Received: from unknown (HELO takamaka.act-europe.fr) (205.232.38.116) by sources.redhat.com with SMTP; 9 Dec 2003 20:37:52 -0000 Received: by takamaka.act-europe.fr (Postfix, from userid 507) id 761EA47D61; Tue, 9 Dec 2003 15:09:11 -0500 (EST) Date: Tue, 09 Dec 2003 20:37:00 -0000 From: Joel Brobecker To: Roul Oldenburger Cc: gdb@sources.redhat.com Subject: Re: debuginformation generated by GNAT Message-ID: <20031209200911.GE1336@gnat.com> References: <3FBA41DC.6050209@rheinmetall-de.com> <20031118185122.GD1319@gnat.com> <3FBCE28E.10807@rheinmetall-de.com> <20031120182051.GB1186@gnat.com> <3FBE277F.5020005@rheinmetall-de.com> <20031121194641.GC2498@gnat.com> <3FC2138B.5050900@rheinmetall-de.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FC2138B.5050900@rheinmetall-de.com> User-Agent: Mutt/1.4i X-SW-Source: 2003-12/txt/msg00158.txt.bz2 > gen_siso_common_types__index___XDLU_0__2147483647 > gen_siso_common_types__bdt_spectral_description__T76s___U /* 0x88d0b6c */; > > Does this variable found at the given address/offset(?) holds the upper > bound? Yes. > So if I say in case of such an array the actual size won't be given > within the debugging output but only by reading for example this > variable in order to calculate it? Yes. In terms of the user's perspective, the size of the array is not static, it can not be determined at compilation time. So depending on what you need to do, you can either print that the upper bound is unknown (in GDB, we print ranges like this "(1 .. ?)", or you can also read the value from memory, but then you'll need to start your program. -- Joel