From: Tom Tromey Date: Mon, 11 Jun 2012 20:19:22 +0000 (+0000) Subject: * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units. X-Git-Tag: sid-snapshot-20120701~219 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0726159622540e146674fb0d096c4e2c77612155;p=platform%2Fupstream%2Fbinutils.git * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1a50740..61ea762 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2012-06-11 Tom Tromey + + * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units. + 2012-06-11 Jan Kratochvil Fix regression by the "ambiguous linespec" series. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 7e25d08..1fdd819 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -2449,6 +2449,14 @@ dw2_get_file_names_reader (const struct die_reader_specs *reader, struct quick_file_names *qfn; unsigned int line_offset; + /* Our callers never want to match partial units -- instead they + will match the enclosing full CU. */ + if (comp_unit_die->tag == DW_TAG_partial_unit) + { + this_cu->v.quick->no_file_data = 1; + return; + } + lh = NULL; slot = NULL; line_offset = 0;