dwarf2read.c: Rewrite/simplify mock_mapped_index
authorPedro Alves <palves@redhat.com>
Fri, 8 Dec 2017 22:44:14 +0000 (22:44 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 8 Dec 2017 23:38:41 +0000 (23:38 +0000)
commita3c5fafd2e0bc8c1ea98c579c0a044c5b324967b
treea4c152456557b0404e07583843a8149a0fd399ed
parent44ed8f3ed0264016a12cfde3126f9148c07eabfa
dwarf2read.c: Rewrite/simplify mock_mapped_index

Now that dw2_expand_symtabs_matching_symbol works with the abstract
mapped_index_base, we can make mock_mapped_index inherit
mapped_index_base too instead of having it pretend to be a real
.gdb_index table.

gdb/ChangeLog:
2017-12-08  Pedro Alves  <palves@redhat.com>

* dwarf2read.c (mock_mapped_index): Reimplement as an extension of
mapped_index_base.
(check_match): Adjust to use mock_index directly.
(check_find_bounds_finds)
(test_mapped_index_find_name_component_bounds): Adjust to work
with a mapped_index_base.
gdb/ChangeLog
gdb/dwarf2read.c