Remove usage of find_inferior in unsuspend_all_lwps
authorSimon Marchi <simon.marchi@ericsson.com>
Mon, 20 Nov 2017 03:23:24 +0000 (22:23 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 20 Nov 2017 03:23:24 +0000 (22:23 -0500)
commit139720c5b32963ce52c5f691e179920ff84a2237
treef085d5585dcf8cc3da9ab740ad11a94765886040
parent6d1e5673fec830f0f1c86632a5d9333e34582bb3
Remove usage of find_inferior in unsuspend_all_lwps

Replace with for_each_thread.  I inlined unsuspend_one_lwp in
unsuspend_all_lwps, since it is very simple.

gdb/gdbserver/ChangeLog:

* linux-low.c (unsuspend_one_lwp): Remove.
(unsuspend_all_lwps): Use for_each_thread, inline code from
unsuspend_one_lwp.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c