aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2002-11-25 22:01:39 +0000
committerDavid Carlton <carlton@bactrian.org>2002-11-25 22:01:39 +0000
commit933c6fe40c2b84847c337b1810d59e84fb3cb22b (patch)
treeb588af855ae316ba1a31228846d280554150ed5c /gdb/dwarf2read.c
parentd12e3de5e4717b51ddcd436e2a3a71e37a44a438 (diff)
downloadgdb-933c6fe40c2b84847c337b1810d59e84fb3cb22b.zip
gdb-933c6fe40c2b84847c337b1810d59e84fb3cb22b.tar.gz
gdb-933c6fe40c2b84847c337b1810d59e84fb3cb22b.tar.bz2
2002-11-25 David Carlton <carlton@math.stanford.edu>
* dwarf2read.c (scan_partial_symbols): Descend into namespace pdi's with no name.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index b5ba7dc..25240d1 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)
{