gdb: remove uses of iterate_over_inferiors in mi/mi-main.c
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 17 Jan 2020 14:57:58 +0000 (09:57 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 17 Jan 2020 14:57:58 +0000 (09:57 -0500)
commita9ac81b1a7902a4c41f5653032e2971a767accc4
tree59f8c0720b787491677f54f9ab546b79837ac8ce
parent788eca4949d08494109249d35cd599971ce6ec51
gdb: remove uses of iterate_over_inferiors in mi/mi-main.c

Replace with range-based loops.

gdb/ChangeLog:

* mi/mi-main.c (run_one_inferior): Change return type to void, replace
`void *` parameter with proper parameters.
(mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
(print_one_inferior): Change return type to void, replace `void *`
parameter with proper parameters.
(mi_cmd_list_thread_groups): Use range-based loop to iterate over
inferiors.
(get_other_inferior): Remove.
(mi_cmd_remove_inferior): Use range-based loop to iterate over
inferiors.
gdb/ChangeLog
gdb/mi/mi-main.c