aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2read.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0a934d6..0a11a4b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2002-11-25 David Carlton <carlton@math.stanford.edu>
+
+ * dwarf2read.c (scan_partial_symbols): Descend into namespace
+ pdi's with no name.
+
2002-11-25 Andrew Cagney <ac131313@redhat.com>
* MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
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)
{