2002-11-25 David Carlton <carlton@math.stanford.edu>
authorDavid Carlton <carlton@bactrian.org>
Mon, 25 Nov 2002 22:01:39 +0000 (22:01 +0000)
committerDavid Carlton <carlton@bactrian.org>
Mon, 25 Nov 2002 22:01:39 +0000 (22:01 +0000)
* dwarf2read.c (scan_partial_symbols): Descend into namespace
pdi's with no name.

gdb/ChangeLog
gdb/dwarf2read.c

index 0a934d68591ba81b311107610ce00c455252d34b..0a11a4b60b6898209afd9c8564b008fe544089f6 100644 (file)
@@ -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
index b5ba7dc713d098c12bfabbef488222bcb19c8f31..25240d1739fbda332e2ef88ee1c6c0e7075c8e30 100644 (file)
@@ -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)
            {