+2020-02-08 Tom Tromey <tom@tromey.com>
+
+ * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
+ (init_cu_die_reader, read_cutu_die_from_dwo): Update.
+
2020-02-08 Tom Tromey <tom@tromey.com>
* dwarf2read.h (struct die_info): Don't declare.
/* The end of the buffer. */
const gdb_byte *buffer_end;
- /* The value of the DW_AT_comp_dir attribute. */
- const char *comp_dir;
-
/* The abbreviation table to use when reading the DIEs. */
struct abbrev_table *abbrev_table;
};
reader->die_section = section;
reader->buffer = section->buffer;
reader->buffer_end = section->buffer + section->size;
- reader->comp_dir = NULL;
reader->abbrev_table = abbrev_table;
}
dump_die (comp_unit_die, dwarf_die_debug);
}
- /* Save the comp_dir attribute. If there is no DWP file then we'll read
- TUs by skipping the stub and going directly to the entry in the DWO file.
- However, skipping the stub means we won't get DW_AT_comp_dir, so we have
- to get it via circuitous means. Blech. */
- if (comp_dir != NULL)
- result_reader->comp_dir = DW_STRING (comp_dir);
-
/* Skip dummy compilation units. */
if (info_ptr >= begin_info_ptr + dwo_unit->length
|| peek_abbrev_code (abfd, info_ptr) == 0)