OSDN Git Service

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

gdb/ChangeLog
gdb/dwarf2read.c

index 0a934d6..0a11a4b 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 b5ba7dc..25240d1 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)
            {