Simplify version check in dw2_symtab_iter_next
authorTom Tromey <tom@tromey.com>
Mon, 22 Nov 2021 23:50:46 +0000 (16:50 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 20 Apr 2022 15:10:03 +0000 (09:10 -0600)
commitc1a56932c4b61f1fe81ce847cb40770203ffd16f
treee642346ad78e183386eedd514838a0229ac4de93
parent6606799fc4aaf812d0986166f57c9849b5d562ed
Simplify version check in dw2_symtab_iter_next

This simplifies the index versio check in dw2_symtab_iter_next, by
passing a reference to the index object to this function.  This avoids
an indirection via the per_bfd object.
gdb/dwarf2/read.c