Use gdb_bfd_sections in elf_symfile_read
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:54 +0000 (11:54 -0600)
commit08f93a1a93f9b344a92dc9e411c83d70acfdf857
treec63d527940947ccf43a34443f6e9e92f79c9e06b
parent03cd72b8107b34e7b572f9962ee589472ff1fa1e
Use gdb_bfd_sections in elf_symfile_read

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

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

* elfread.c (elf_locate_sections): Change parameters.
(elf_symfile_read): Use foreach.
gdb/ChangeLog
gdb/elfread.c