Workaround for gcc/45682.
authorDoug Evans <dje@google.com>
Wed, 29 Sep 2010 16:41:24 +0000 (16:41 +0000)
committerDoug Evans <dje@google.com>
Wed, 29 Sep 2010 16:41:24 +0000 (16:41 +0000)
commitabc72ce4c676be2f368fa0ace766ed29cd444020
treed7ebaf967e24d8c0e7cf31dfaef509e183e15339
parent5f79eb72c24bb79e981896542831374b54fb96ba
Workaround for gcc/45682.
* dwarf2read.c (partial_die_info): New fields fixup_called,
linkage_name.
(guess_partial_die_structure_name): Renamed from guess_structure_name.
Move definition next to use.  Use linkage_name to determine if class
is in a namespace.  All callers updated.
(fixup_partial_die): Return early if already called.
Set fixup_called when done.
(guess_full_die_structure_name): New function.
(determine_prefix): Call it for class/struct/union dies if c++ and
.debug_types section is present and parent is DW_TAG_compile_unit.
gdb/ChangeLog
gdb/dwarf2read.c