Index: gdb/dwarf2read.c =================================================================== RCS file: /cvs/src/src/gdb/dwarf2read.c,v retrieving revision 1.267 diff -p -u -r1.267 dwarf2read.c --- gdb/dwarf2read.c 27 Jun 2008 17:56:47 -0000 1.267 +++ gdb/dwarf2read.c 25 Jul 2008 01:14:49 -0000 @@ -4244,7 +4244,7 @@ read_enumeration_type (struct die_info * name = dwarf2_name (die, cu); if (name != NULL) { - if (processing_has_namespace_info) + if (processing_has_namespace_info && processing_current_prefix) { TYPE_TAG_NAME (type) = typename_concat (&objfile->objfile_obstack, processing_current_prefix, @@ -7604,6 +7604,7 @@ new_symbol (struct die_info *die, struct break; case DW_TAG_enumerator: if (processing_has_namespace_info + && processing_current_prefix && processing_current_prefix[0] != '\0') { SYMBOL_LINKAGE_NAME (sym) = typename_concat (&objfile->objfile_obstack,