Remove usage of find_inferior in lynx_mourn
authorSimon Marchi <simon.marchi@polymtl.ca>
Sun, 3 Dec 2017 01:36:32 +0000 (20:36 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sun, 3 Dec 2017 01:36:32 +0000 (20:36 -0500)
commitc91bb56b06b52d45de7c8871a6d44ddae61ae977
tree76e0f609450a7ddb342f976f6fa62cdf92f4b4ca
parent634a3254c8fe1728c0202289afe594928094d860
Remove usage of find_inferior in lynx_mourn

Replace it with for_each_thread with pid filtering.  We can remove
lynx_delete_thread_callback and pass remove_thread directly.

I can't build/test this change, but it should be obvious enough.

gdb/gdbserver/ChangeLog:

* lynx.low (lynx_delete_thread_callback): Remove.
(lynx_mourn): Use for_each_thread.
gdb/gdbserver/ChangeLog
gdb/gdbserver/lynx-low.c