Custom call frame description
Tom Tromey
tromey@redhat.com
Wed Jan 27 15:58:00 GMT 2010
>>>>> "Mitar" == Mitar <mmitar@gmail.com> writes:
Mitar> GCC produces for DW_AT_type for subrange (DW_TAG_subrange_type)
Mitar> of the array:
Mitar> .byte 0x4 @ DW_AT_byte_size
Mitar> .byte 0x7 @ DW_AT_encoding
Mitar> That is unsigned four bytes int. Why is not simply a char - the
Mitar> same type as it is defined in DW_TAG_array_type?
The subrange type defines the range of the array, not the type of the
array's elements. See the DWARF spec for stuff like this; I found the
answer by just searching for DW_TAG_subrange_type.
Tom
More information about the Gdb
mailing list