* dwarf2read.c (die_needs_namespace): Also return 0 for
authorTom Tromey <tromey@redhat.com>
Mon, 15 Mar 2010 20:49:53 +0000 (20:49 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 15 Mar 2010 20:49:53 +0000 (20:49 +0000)
DW_TAG_subprogram.

gdb/ChangeLog
gdb/dwarf2read.c

index 2d9963d..31745c6 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-15  Tom Tromey  <tromey@redhat.com>
+
+       * dwarf2read.c (die_needs_namespace): Also return 0 for
+       DW_TAG_subprogram.
+
 2010-03-15  Sami Wagiaalla  <swagiaal@redhat.com>
 
        PR c++/7936:
index db3f396..563cb18 100644 (file)
@@ -3241,7 +3241,8 @@ die_needs_namespace (struct die_info *die, struct dwarf2_cu *cu)
         and have a mangled name.  */
       if (die->parent->tag ==  DW_TAG_lexical_block
          || die->parent->tag ==  DW_TAG_try_block
-         || die->parent->tag ==  DW_TAG_catch_block)
+         || die->parent->tag ==  DW_TAG_catch_block
+         || die->parent->tag == DW_TAG_subprogram)
        return 0;
       return 1;