gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 28 Aug 2009 10:49:06 +0000 (10:49 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 28 Aug 2009 10:49:06 +0000 (10:49 +0000)
commitd4b96c9a787ed13b0b9367b5fedb96a4746a5c9d
treefaed0eb7803149e34aadfca246afe0f26431d60b
parent12b1a97932e2ae3112bbb389c81e4c80fff86c90
gdb/
Support constant DW_AT_data_member_location by GCC PR debug/40659.
* dwarf2read.c
(dwarf2_add_field <DW_TAG_member> <DW_AT_data_member_location>):
Initialize BYTE_OFFSET to 0 by default.  Explicitly check if
attr_form_is_block.
(dwarf2_add_field <DW_TAG_inheritance> <DW_AT_data_member_location>)
(read_common_block <DW_AT_data_member_location>): New variable
byte_offset.  Fix crash on non-DW_BLOCK ATTR values.

gdb/testsuite/
Support constant DW_AT_data_member_location by GCC PR debug/40659.
* gdb.dwarf2/dw2-inheritance.exp, gdb.dwarf2/dw2-inheritance.S: New.
gdb/ChangeLog
gdb/dwarf2read.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dw2-inheritance.S [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/dw2-inheritance.exp [new file with mode: 0644]