Custom call frame description

Mitar mmitar@gmail.com
Wed Jan 27 15:23:00 GMT 2010


Hi!

Why for:

char foo[] = "bar";

GCC produces for DW_AT_type for subrange (DW_TAG_subrange_type) of the array:

.byte   0x4     @ DW_AT_byte_size
.byte   0x7     @ DW_AT_encoding

That is unsigned four bytes int. Why is not simply a char - the same
type as it is defined in DW_TAG_array_type?


Mitar



More information about the Gdb mailing list