This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: debuginformation generated by GNAT


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]