aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-03-15 20:49:53 +0000
committerTom Tromey <tromey@redhat.com>2010-03-15 20:49:53 +0000
commit1054b214e259e0671c631126f191dbdda28b6881 (patch)
tree32ce38d8cdc739c773dcc38d9f56189049c0e09e /gdb
parent178bead7ef63690bf3f2dc5ba1041d3962b35552 (diff)
downloadgdb-1054b214e259e0671c631126f191dbdda28b6881.zip
gdb-1054b214e259e0671c631126f191dbdda28b6881.tar.gz
gdb-1054b214e259e0671c631126f191dbdda28b6881.tar.bz2
* dwarf2read.c (die_needs_namespace): Also return 0 for
DW_TAG_subprogram.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2read.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2d9963d..31745c6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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:
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index db3f396..563cb18 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -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;