Use gdb_bfd_sections in gcore_memory_sections
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:53 +0000 (11:54 -0600)
commitf4f2b85fb2eab29ea981b2c3f2058c1dc04e413c
tree829b85f168c31d6f6326b257df174556c556bec5
parentb35c1d1cf457db034186f321517eee69ef8457a5
Use gdb_bfd_sections in gcore_memory_sections

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

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

* gcore.c (make_output_phdrs): Remove 'ignored' parameter.
(gcore_copy_callback): Likewise.
(gcore_memory_sections): Use foreach.
gdb/ChangeLog
gdb/gcore.c