PR symtab/17591

gdb/ChangeLog:

	PR symtab/17591
	* dwarf2read.c (find_slot_in_mapped_hash): Handle
	"(anonymous namespace)".
This commit is contained in:
Doug Evans 2014-11-13 16:50:51 -08:00
parent 60f7655a4a
commit a8719064e8
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2014-11-13 Doug Evans <dje@google.com>
PR symtab/17591
* dwarf2read.c (find_slot_in_mapped_hash): Handle
"(anonymous namespace)".
2014-11-13 Doug Evans <dje@google.com>
* dwarf2read.c (update_enumeration_type_from_children): Avoid

View File

@ -2917,7 +2917,11 @@ find_slot_in_mapped_hash (struct mapped_index *index, const char *name,
{
/* NAME is already canonical. Drop any qualifiers as .gdb_index does
not contain any. */
const char *paren = strchr (name, '(');
const char *paren = NULL;
/* Need to handle "(anonymous namespace)". */
if (*name != '(')
paren = strchr (name, '(');
if (paren)
{