Simplify psym_map_matching_symbols
authorTom Tromey <tromey@adacore.com>
Fri, 12 Jul 2019 17:00:39 +0000 (11:00 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 10 Sep 2019 14:30:45 +0000 (08:30 -0600)
commit6a3dbf1bc620ae068c84074b2f72e11c24dc1e6d
treea1672a9db0aec737e60c18c9b80f363049504839
parent6969f124b987494df069b032e2e0f36485d3d8bb
Simplify psym_map_matching_symbols

This introduces a new helper function,
iterate_over_symbols_terminated, and changes psym_map_matching_symbols
to use it.  A subsequent patch will introduce a new user of this
function in the DWARF reader.

gdb/ChangeLog
2019-09-10  Tom Tromey  <tromey@adacore.com>

* psymtab.c (map_block): Remove.
(psym_map_matching_symbols): Use iterate_over_symbols_terminated.
* symtab.c (iterate_over_symbols_terminated): New function.
* symtab.c (iterate_over_symbols_terminated): Declare.
gdb/ChangeLog
gdb/psymtab.c
gdb/symtab.c
gdb/symtab.h