Remove usage of find_inferior in reset_lwp_ptrace_options_callback
authorSimon Marchi <simon.marchi@ericsson.com>
Mon, 20 Nov 2017 03:23:22 +0000 (22:23 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 20 Nov 2017 03:23:23 +0000 (22:23 -0500)
commitbbf550d50e4c85666877456f014421089503e83b
tree96b50ebe3d79f3a7f52f55e41f7198632a4cb8da
parent00192f771796a144fe27f5f1d98d8e6f66976221
Remove usage of find_inferior in reset_lwp_ptrace_options_callback

Replace with for_each_thread, and inline code from
reset_lwp_ptrace_options_callback.

gdb/gdbserver/ChangeLog:

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