Use gdb_bfd_sections in symfile.c
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:51 +0000 (11:54 -0600)
commitad7277dab9ffa0f388e6e54d5248792a3f122fdc
tree3f8990eed44d78135aeb18b504995e54c8a1d7d6
parentcb814f2e3062ae3c82bba3baca6450c5e3317e58
Use gdb_bfd_sections in symfile.c

This changes some functions in symfile.c to avoid
bfd_map_over_sections, in favor of iteration.  Some helper types can
also be removed due to this change.

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

* symfile.h: (find_lowest_section): Don't declare.
* symfile.c (find_lowest_section): Now static.  Change
parameters.
(struct place_section_arg): Remove.
(place_section): Change parameters.
(addr_info_make_relative): Use foreach.
(symfile_dummy_outputs): Remove.
(default_symfile_relocate): Use foreach.
gdb/ChangeLog
gdb/symfile.c
gdb/symfile.h