From: Jim Blandy Date: Mon, 24 Jul 2000 17:07:26 +0000 (+0000) Subject: * dwarf2read.c (read_structure_scope): Correct overzealous X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8713b1b13530f47a2ab9c9a0d9b2ce0b2a1e2f79;p=binutils-gdb.git * dwarf2read.c (read_structure_scope): Correct overzealous addition of cu_header argument. --- diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 6ec5c493a3f..2f9b032715d 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -2220,7 +2220,7 @@ read_structure_scope (struct die_info *die, struct objfile *objfile, /* C++ static member. */ dwarf2_add_field (&fi, child_die, objfile, cu_header); } - else if (child_die->tag == DW_TAG_subprogram, cu_header) + else if (child_die->tag == DW_TAG_subprogram) { /* C++ member function. */ process_die (child_die, objfile, cu_header);