This is the mail archive of the
mailing list for the GDB project.
Re: Custom call frame description
>>>>> "Mitar" == Mitar <firstname.lastname@example.org> 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
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.