Introduce and use dwarf_scanner_base
authorTom Tromey <tom@tromey.com>
Mon, 22 Nov 2021 23:43:47 +0000 (16:43 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 20 Apr 2022 15:10:03 +0000 (09:10 -0600)
commit6606799fc4aaf812d0986166f57c9849b5d562ed
tree776b79788312a15518f08b4ce17e62fb88892858
parent045a7baed2e8039fc734b43f4f35393c76e59e55
Introduce and use dwarf_scanner_base

This introduces dwarf_scanner_base, a base class for all the index
readers in the DWARF code.  Then, it changes both mapped_index_base
and cooked_index_vector to derive from this new base class.
gdb/dwarf2/cooked-index.h
gdb/dwarf2/mapped-index.h
gdb/dwarf2/read.c