Remove for_each_inferior
authorSimon Marchi <simon.marchi@polymtl.ca>
Sun, 3 Dec 2017 01:37:53 +0000 (20:37 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 3 Dec 2017 01:37:53 +0000 (20:37 -0500)
commitf004534791145669d7765f8122e48f21e1deeb94
tree9d9b85053867184ce2574f48489b16e4be3a817f
parent9521758bf967360fc1e18b2a2195d97ae19cb80d
Remove for_each_inferior

This patch removes for_each_inferior, replacing all its usages with
for_each_thread.

gdb/gdbserver/ChangeLog:

* inferiors.c (for_each_inferior): Remove.
(clear_inferiors): Use for_each_thread.
* inferiors.h (for_each_inferior): Remove.
* linux-low.c (linux_wait_for_event_filtered): Use
for_each_thread.
(linux_stabilize_threads): Likewise.
* regcache.c (regcache_release): Likewise.
* server.c (gdb_wants_all_threads_stopped): Likewise.
(clear_pending_status_callback): Remove.
(handle_status): Use for_each_thread.
(captured_main): Likewise.
* win32-low.c (child_init_thread_list): Likewise.
(win32_clear_inferiors): Likewise.
(fake_breakpoint_event): Likewise.
gdb/gdbserver/ChangeLog
gdb/gdbserver/inferiors.c
gdb/gdbserver/inferiors.h
gdb/gdbserver/linux-low.c
gdb/gdbserver/regcache.c
gdb/gdbserver/server.c
gdb/gdbserver/win32-low.c