From: Joel Brobecker <brobecker@gnat.com>
To: Roul Oldenburger <oldenburger.roul@rheinmetall-de.com>
Cc: gdb@sources.redhat.com
Subject: Re: debuginformation generated by GNAT
Date: Tue, 09 Dec 2003 20:37:00 -0000 [thread overview]
Message-ID: <20031209200911.GE1336@gnat.com> (raw)
In-Reply-To: <3FC2138B.5050900@rheinmetall-de.com>
> 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
prev parent reply other threads:[~2003-12-09 20:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-18 16:01 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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20031209200911.GE1336@gnat.com \
--to=brobecker@gnat.com \
--cc=gdb@sources.redhat.com \
--cc=oldenburger.roul@rheinmetall-de.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox