Use gdb_bfd_sections in build_objfile_section_table
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)
commitcb814f2e3062ae3c82bba3baca6450c5e3317e58
treecc4638726cc154a8237e36967afbbec06a003e9e
parent3cabfd268b2d2301a8bfcfa124c162a1d45cfc68
Use gdb_bfd_sections in build_objfile_section_table

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

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

* objfiles.c (add_to_objfile_sections): Rename from
add_to_objfile_sections_full.
(add_to_objfile_sections): Remove.
(build_objfile_section_table): Use foreach.
gdb/ChangeLog
gdb/objfiles.c