This is the mail archive of the
archer@sourceware.org
mailing list for the Archer project.
[expr] [patch] Fix AAA::ALPHA regression after FSF GDB merge
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: archer at sourceware dot org
- Date: Wed, 27 Jan 2010 19:33:05 +0100
- Subject: [expr] [patch] Fix AAA::ALPHA regression after FSF GDB merge
Hi,
Sami has noticed after my merge bf44eca4f02a48aae593b2394ba6e0d633bdf840 there
is a regression on [expr-cumulative] against new FSF GDB testcase:
-PASS: gdb.cp/namespace.exp: print AAA::ALPHA
+FAIL: gdb.cp/namespace.exp: print AAA::ALPHA
FYI: fix PR c++/8000
http://sourceware.org/ml/gdb-patches/2010-01/msg00478.html
The patch below in fact exactly reverts a change of [expr-cumulative].
OK to check-in?
No regressions on {x86_64,x86_64-m32,i686}-fedora12-linux-gnu.
Thanks,
Jan
2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
* dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -8628,7 +8628,7 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu)
add_symbol_to_list (sym, cu->list_in_scope);
break;
case DW_TAG_enumerator:
- SYMBOL_LINKAGE_NAME (sym) = (char *) dwarf2_name (die, cu);
+ SYMBOL_LINKAGE_NAME (sym) = (char *) dwarf2_full_name (die, cu);
attr = dwarf2_attr (die, DW_AT_const_value, cu);
if (attr)
{