* dwarf2read.c (read_structure_scope): Correct overzealous
authorJim Blandy <jimb@codesourcery.com>
Mon, 24 Jul 2000 17:07:26 +0000 (17:07 +0000)
committerJim Blandy <jimb@codesourcery.com>
Mon, 24 Jul 2000 17:07:26 +0000 (17:07 +0000)
addition of cu_header argument.

gdb/dwarf2read.c

index 6ec5c49..2f9b032 100644 (file)
@@ -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);