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:

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


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