From 1054b214e259e0671c631126f191dbdda28b6881 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 15 Mar 2010 20:49:53 +0000 Subject: [PATCH] * dwarf2read.c (die_needs_namespace): Also return 0 for DW_TAG_subprogram. --- gdb/ChangeLog | 5 +++++ gdb/dwarf2read.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2d9963d1463..31745c6db78 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-03-15 Tom Tromey + + * dwarf2read.c (die_needs_namespace): Also return 0 for + DW_TAG_subprogram. + 2010-03-15 Sami Wagiaalla PR c++/7936: diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index db3f39614e9..563cb185de6 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; -- 2.30.2