gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 20 May 2011 08:55:51 +0000 (08:55 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 20 May 2011 08:55:51 +0000 (08:55 +0000)
commitb3c8eb43f1e3f7d21851b3d82f9438ec372f9417
tree41860298d2d4d7b2793dc52309edd32ed27e4eb6
parent5583de77a97f8b3ab60ab9b84443b7dd53a7d792
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]