Add an ad hoc version check to dwarf_scanner_base
authorTom Tromey <tom@tromey.com>
Mon, 22 Nov 2021 23:53:34 +0000 (16:53 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 20 Apr 2022 15:10:03 +0000 (09:10 -0600)
commitf75a1d3a732d96ed4adadddaaeafe17732453256
tree3befd6320ccd834bd306113972f0e1568fcd85a9
parentc1a56932c4b61f1fe81ce847cb40770203ffd16f
Add an ad hoc version check to dwarf_scanner_base

Some generic code in the DWARF reader has a special case for older
versions of .gdb_index.  This patch adds an ad hoc version check
method so that these spots can work without specific knowledge of
which index is in use.
gdb/dwarf2/mapped-index.h
gdb/dwarf2/read.c