This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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/ 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.


        * 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 *

-  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)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]