Use gdb_bfd_sections in build_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:54 +0000 (11:54 -0600)
commit8a6bb1d130b61887011463417bd8662dc41757fa
treed4f44793c4af6a5dfdacce0e6a8ec225f6ab603e
parent08f93a1a93f9b344a92dc9e411c83d70acfdf857
Use gdb_bfd_sections in build_section_table

This changes build_section_table to avoid bfd_map_over_sections, in
favor of iteration.  In this situation it seemed simple to just remove
the helper function entirely.

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

* exec.c (add_to_section_table): Remove.
(build_section_table): Use foreach.
gdb/ChangeLog
gdb/exec.c