aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-06-11 20:19:22 +0000
committerTom Tromey <tromey@redhat.com>2012-06-11 20:19:22 +0000
commit0726159622540e146674fb0d096c4e2c77612155 (patch)
tree830856f307ab7e8317da37983c72a16459d321b2 /gdb/dwarf2read.c
parentcc80f267162ba7f1cab2fcf605270a3510cf010b (diff)
downloadgdb-0726159622540e146674fb0d096c4e2c77612155.zip
gdb-0726159622540e146674fb0d096c4e2c77612155.tar.gz
gdb-0726159622540e146674fb0d096c4e2c77612155.tar.bz2
* dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c8
1 files changed, 8 insertions, 0 deletions
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;