This is the mail archive of the gdb@sourceware.org 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: Custom call frame description


>>>>> "Mitar" == Mitar  <mmitar@gmail.com> writes:

Tom> The subrange type defines the range of the array, not the type of the
Tom> array's elements. ÂSee the DWARF spec for stuff like this; I found the
Tom> answer by just searching for DW_TAG_subrange_type.

Mitar> The subrange entry may have a DW_AT_type attribute to describe
Mitar> the type of object, called the basis type, of whose values this
Mitar> subrange is a subset.

Mitar> And from that I understand that it is meant to describe a base type of
Mitar> an array, that is a type of an each element.

I can see why you might think that, but I don't think that is the
correct interpretation.

The DW_TAG_subrange_type describes the range of array indices, like
0..4.  Therefore the base type of the subrange is an integer.

The type of elements of the array is described by a different attribute.

Tom


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