Simplify BFD section iteration in coff-pe-read.c
authorTom Tromey <tromey@adacore.com>
Tue, 19 Apr 2022 13:27:48 +0000 (07:27 -0600)
committerTom Tromey <tromey@adacore.com>
Fri, 22 Apr 2022 12:54:02 +0000 (06:54 -0600)
commit5a0d4dfbf8aa8238c3eaccfdaf59ec9c4ae0331e
tree0b8854e57bc790cbce7fef4211bf0f1035160ccd
parent6acc36f71dfc60e357496174672103f133f85e97
Simplify BFD section iteration in coff-pe-read.c

coff-pe-read.c iterates over BFD sections using bfd_map_over_sections,
but it's much simpler to use a for-each loop.  This allows for the
removal of helper functions and types.
gdb/coff-pe-read.c