This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] dwarf2read.c:mapped_index, use gdb::array_view, simplify symbol table
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Sat, 09 Dec 2017 00:22:22 -0500
- Subject: [binutils-gdb] dwarf2read.c:mapped_index, use gdb::array_view, simplify symbol table
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT f00a2de2a7556c59bce93f7ced44afa8e1bbf7c3 ***
Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: f00a2de2a7556c59bce93f7ced44afa8e1bbf7c3
dwarf2read.c:mapped_index, use gdb::array_view, simplify symbol table
This replaces a couple ptr+size pairs with gdb::array_view in the
.gdb_index code, and simplifies things by using an aggregate for the
type of the symbol table hash bucket instead of having to consider the
distinction between size of table vs number of slots and access name
vs vec by index.
gdb/ChangeLog:
2017-12-08 Pedro Alves <palves@redhat.com>
* dwarf2read.c (mapped_index::symbol_table_slot): New.
(mapped_index::address_table): Now a gdb::array_view of const
gdb_byte.
(mapped_index::symbol_table): Now a gdb::array_view of
symbol_table_slot.
(mapped_index::address_table_size)
(mapped_index::symbol_table_slots): Delete.
(create_addrmap_from_index): Adjust.
(find_slot_in_mapped_hash): Adjust.
(read_index_from_section): Adjust.
(dwarf2_read_index): Adjust.