Remove usage of find_inferior in linux_detach
authorSimon Marchi <simon.marchi@polymtl.ca>
Sun, 3 Dec 2017 01:36:36 +0000 (20:36 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 3 Dec 2017 01:36:36 +0000 (20:36 -0500)
commit798a38e8de5f0fb5f7b17ae757b2bf4c5139c023
treeb4c117632306998e060647aed4261a3d7fd5f90b
parente4eb0dec0b9219a27ea6b9769f098fff34612779
Remove usage of find_inferior in linux_detach

Replace with for_each_thread with pid filtering.

gdb/gdbserver/ChangeLog:

* linux-low.c (linux_detach_lwp_callback): Return void, remove
args parameter, don't check for pid.
(linux_detach): Use for_each_thread.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c