OSDN Git Service

gdb/
authorjkratoch <jkratoch>
Fri, 20 May 2011 08:55:43 +0000 (08:55 +0000)
committerjkratoch <jkratoch>
Fri, 20 May 2011 08:55:43 +0000 (08:55 +0000)
commitcf65cb43114f9bb5b3bce978fa37c4f328e8e4ec
tree46f2c7e1b82f9a65f00b766d1181bdbc300d1fb8
parent983d34b7e619187aa546278bc2a87c0b38a28f4c
gdb/
Fix -readnow for -gdwarf-4 unused type units.
* dwarf2read.c (struct signatured_type): Remove the field offset.
(create_signatured_type_table_from_index): Remove its initialization.
(create_debug_types_hash_table): Likewise.  Initialize per_cu.offset
instead.  Add a complaint call.
(process_psymtab_comp_unit): Change assignment to gdb_assert.
(process_type_comp_unit, lookup_die_type, dump_die_shallow)
(lookup_signatured_type_at_offset, read_signatured_type)
(write_one_signatured_type): Update the field for per_cu.

gdb/testsuite/
Fix -readnow for -gdwarf-4 unused type units.
* gdb.dwarf2/dw4-sig-type-unused.S: New file.
* gdb.dwarf2/dw4-sig-type-unused.exp: New file.
gdb/ChangeLog
gdb/dwarf2read.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.S [new file with mode: 0644]
gdb/testsuite/gdb.dwarf2/dw4-sig-type-unused.exp [new file with mode: 0644]