DWARF-5 .debug_names DW_IDX_type_unit fix
authorJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 14 Dec 2017 09:00:17 +0000 (10:00 +0100)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Thu, 14 Dec 2017 09:02:09 +0000 (10:02 +0100)
commit8af5c486ea6153bb84b9257def4e5faa4bc72421
tree01bb4efc9bea7b507c8552e35cda557de8606450
parent79e8fcaafa92e7b4a74e510c5487e87c60ff1945
DWARF-5 .debug_names DW_IDX_type_unit fix

The .debug_names completely misses its support as it did not even produce
DW_IDX_type_unit.

gdb/ChangeLog
2017-12-14  Jan Kratochvil  <jan.kratochvil@redhat.com>

* dwarf2read.c (dw2_debug_names_iterator::next): Support
DW_IDX_type_unit.
(debug_names::dwarf5_offset_size, unit_kind): New.
(debug_names::insert): Add parameter kind.
(debug_names::build): Support DW_IDX_type_unit.
(debug_names::recursively_write_psymbols): Update
(debug_names::write_psymbols caller.
(debug_names::write_one_signatured_type_data)
(debug_names::write_one_signatured_type): New.
(debug_names::index_key, debug_names::symbol_value)
(debug_names::write_psymbols): Add kind.
(debug_names::write_one_signatured_type): New.
(write_debug_names): Move dwarf5_offset_size to debug_names.
Use debug_names::write_one_signatured_type for type units.
gdb/ChangeLog
gdb/dwarf2read.c