]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2002-11-25 David Carlton <carlton@math.stanford.edu>
authorDavid Carlton <carlton@bactrian.org>
Mon, 25 Nov 2002 21:46:54 +0000 (21:46 +0000)
committerDavid Carlton <carlton@bactrian.org>
Mon, 25 Nov 2002 21:46:54 +0000 (21:46 +0000)
* dwarf2read.c (scan_partial_symbols): Descend into namespace
pdi's with no name.

gdb/ChangeLog
gdb/dwarf2read.c

index 944e930f22703cdfe9f7f56b4cdd334ef442434d..2efb2c99cbee9af6f6e83e0bb15152a2019559c0 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-21  Daniel Jacobowitz  <drow@mvista.com>
 
        * maint.c (_initialize_maint_cmds): Fix typo.  From
index d63cf2444e75ddcb179771c88444a9438f091642..1788ee55494f24392e0c4d3b7bbcc8cf99f190b0 100644 (file)
@@ -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)
            {