Use gdb_bfd_sections in gdb_bfd_close_or_warn
authorTom Tromey <tom@tromey.com>
Sat, 19 Sep 2020 17:54:49 +0000 (11:54 -0600)
committerTom Tromey <tom@tromey.com>
Sat, 19 Sep 2020 17:54:50 +0000 (11:54 -0600)
commit1ce51eb52dca2fcd1ad4120876362ce2a53b3de6
tree2230d03928cd5205c1cc1eef76aaef48063172fc
parenta190fabbfc6cca47d572550419f80c55802f3056
Use gdb_bfd_sections in gdb_bfd_close_or_warn

This changes gdb_bfd_close_or_warn to avoid bfd_map_over_sections, in
favor of iteration.

gdb/ChangeLog
2020-09-19  Tom Tromey  <tom@tromey.com>

* gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
parameters.
(gdb_bfd_close_or_warn): Use foreach.
gdb/ChangeLog
gdb/gdb_bfd.c