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


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


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