Use gdb_bfd_sections in core_target_open
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:49 +0000 (11:54 -0600)
commita190fabbfc6cca47d572550419f80c55802f3056
tree5d5f72ee0e0b4a293d05e0748a761f1888174b96
parentcafb0d81315ed3f8b4756a30e0c58fd73c161015
Use gdb_bfd_sections in core_target_open

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

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

* corelow.c (add_to_thread_list): Change parameters.
(core_target_open): Use foreach.
gdb/ChangeLog
gdb/corelow.c