diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0a934d68591..0a11a4b60b6 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-11-25 David Carlton + + * dwarf2read.c (scan_partial_symbols): Descend into namespace + pdi's with no name. + 2002-11-25 Andrew Cagney * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5 diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index b5ba7dc713d..25240d1739f 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -1359,7 +1359,9 @@ scan_partial_symbols (char *info_ptr, struct objfile *objfile, { info_ptr = read_partial_die (&pdi, abfd, info_ptr, cu_header); - if (pdi.name) + /* Anonymous namespaces have no name but are interesting. */ + + if (pdi.name != NULL || pdi.tag == DW_TAG_namespace) { switch (pdi.tag) {