This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob] Fix problem with DW_FORM_sig8 in DW_TAG_imported_declaration
- From: Cary Coutant <ccoutant at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 14 Oct 2009 16:44:51 -0700
- Subject: [ob] Fix problem with DW_FORM_sig8 in DW_TAG_imported_declaration
I'm checking in this obvious patch so that gdb can follow a
DW_FORM_sig8 on the DW_AT_import attribute of a
DW_TAG_imported_declaration (now possible with gcc -gdwarf-4).
The existing gdb.cp/namespace.cc test already covers this case, but
that testcase is currently failing even without gcc -gdwarf-4, so it
didn't show up as a new or different failure.
-cary
* dwarf2read.c (read_import_statement): Call follow_die_ref_or_sig.
Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.328
diff -u -p -r1.328 dwarf2read.c
--- dwarf2read.c 6 Oct 2009 23:27:04 -0000 1.328
+++ dwarf2read.c 14 Oct 2009 23:04:53 -0000
@@ -3365,7 +3365,7 @@ read_import_statement (struct die_info *
return;
}
- imported_die = follow_die_ref (die, import_attr, &cu);
+ imported_die = follow_die_ref_or_sig (die, import_attr, &cu);
imported_name = dwarf2_name (imported_die, cu);
if (imported_name == NULL)
{