diff options
author | Tom Tromey <tromey@redhat.com> | 2010-03-15 20:49:53 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-03-15 20:49:53 +0000 |
commit | 1054b214e259e0671c631126f191dbdda28b6881 (patch) | |
tree | 32ce38d8cdc739c773dcc38d9f56189049c0e09e /gdb | |
parent | 178bead7ef63690bf3f2dc5ba1041d3962b35552 (diff) | |
download | gdb-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/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 3 |
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; |