gdb: remove uses of iterate_over_inferiors in remote-sim.c
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 21 Jan 2020 21:28:25 +0000 (16:28 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 21 Jan 2020 21:28:26 +0000 (16:28 -0500)
commitb3ee6dd9f205f1d4ff208dbc9575528dc6e1bce7
treeb9b133948139c3c74d989ee18ffe40eee4d045fd
parentf9fac3c81b322a3c0d2e50d19769c06fdada7a94
gdb: remove uses of iterate_over_inferiors in remote-sim.c

This removes the two uses of iterate_over_inferiors, in favor of
range-based loops.

gdb/ChangeLog:

* remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
(get_sim_inferior_data): Remove use of iterate_over_inferiors,
replace with range-based for.
(gdbsim_interrupt_inferior): Remove.
(gdbsim_target::interrupt): Replace iterate_over_inferiors use
with a range-based for.  Inline code from
gdbsim_interrupt_inferior.
gdb/ChangeLog
gdb/remote-sim.c