This is the mail archive of the mailing list for the Archer 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]

[expr] [patch] Fix AAA::ALPHA regression after FSF GDB merge


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

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.


2010-01-27  Jan Kratochvil  <>

	* 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);
 	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)

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