PR c++/11702
authorDoug Evans <dje@google.com>
Tue, 29 Jun 2010 16:53:10 +0000 (16:53 +0000)
committerDoug Evans <dje@google.com>
Tue, 29 Jun 2010 16:53:10 +0000 (16:53 +0000)
commit254e6b9ed4abf109cb8399aa3f8f387f7eb2465c
tree2bc97c84786aa776590c3ff3c28dedb572e1d449
parent6e70227d64c310278ef73303b2137a9997cb4c0f
PR c++/11702
* NEWS: Add entry.
* dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
create a symbol for the field and record the value.
(new_symbol): Handle DW_TAG_member.
* gdbtypes.c (field_is_static): Remove FIXME.
* symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
only ignore LOC_CONST symbols that are enums.

testsuite/
Test PR c++/11702.
* gdb.cp/m-static.exp: Add testcase.
* gdb.cp/m-static.h (gnu_obj_4): Add initialized static const member.
gdb/ChangeLog
gdb/NEWS
gdb/dwarf2read.c
gdb/gdbtypes.c
gdb/symtab.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/m-static.exp
gdb/testsuite/gdb.cp/m-static.h