From: David Carlton Date: Mon, 25 Nov 2002 21:46:54 +0000 (+0000) Subject: 2002-11-25 David Carlton X-Git-Tag: gdb_5_3-2002-12-12-release~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7bc59c44565bb9220d96964ce3caa1e93fd29ef4;p=thirdparty%2Fbinutils-gdb.git 2002-11-25 David Carlton * dwarf2read.c (scan_partial_symbols): Descend into namespace pdi's with no name. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 944e930f227..2efb2c99cbe 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-21 Daniel Jacobowitz * maint.c (_initialize_maint_cmds): Fix typo. From diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index d63cf2444e7..1788ee55494 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -1322,7 +1322,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) {