Use gdb_bfd_sections in generic_load
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:55 +0000 (11:54 -0600)
commit5486c5174894a1a6e68b9fdf1865b838b9c792d8
tree54880f25923ec74e2eaaa9b28c4e583d99ef177b
parent8a6bb1d130b61887011463417bd8662dc41757fa
Use gdb_bfd_sections in generic_load

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

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

* symfile.c (add_section_size_callback): Remove.
(load_one_section): Rename from load_section_callback.  Change
parameters.
(generic_load): Use foreach.
gdb/ChangeLog
gdb/symfile.c