debuginformation generated by GNAT
Joel Brobecker
brobecker@gnat.com
Tue Dec 9 20:37:00 GMT 2003
> 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
More information about the Gdb
mailing list