Remove usages of find_inferior in stop_all_lwps
authorSimon Marchi <simon.marchi@polymtl.ca>
Sun, 3 Dec 2017 01:36:41 +0000 (20:36 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 3 Dec 2017 01:36:42 +0000 (20:36 -0500)
commitdf3e4dbe661e522cc63d3dab15c3974713fba4dd
treee36d9878da74b2c0d5133491910ded48891dade3
parent5a6b0a41dfc9b860f285ddb3a1e518299f614cd3
Remove usages of find_inferior in stop_all_lwps

Replace with for_each_thread.

gdb/gdbserver/ChangeLog:

* linux-low.c (send_sigstop_callback): Return void, change
parameter type.  Rename to...
(send_sigstop): ... this.
(suspend_and_send_sigstop_callback): Return void, change parameter
type.  Rename to...
(suspend_and_send_sigstop): ... this.
(stop_all_lwps): Use for_each_thread.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c