* dwarf2read.c (die_needs_namespace): Also return 0 for
DW_TAG_subprogram.
This commit is contained in:
parent
178bead7ef
commit
1054b214e2
|
@ -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>
|
2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
|
||||||
|
|
||||||
PR c++/7936:
|
PR c++/7936:
|
||||||
|
|
|
@ -3241,7 +3241,8 @@ die_needs_namespace (struct die_info *die, struct dwarf2_cu *cu)
|
||||||
and have a mangled name. */
|
and have a mangled name. */
|
||||||
if (die->parent->tag == DW_TAG_lexical_block
|
if (die->parent->tag == DW_TAG_lexical_block
|
||||||
|| die->parent->tag == DW_TAG_try_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 0;
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue