Remove usage of find_inferior in win32-i386-low.c
authorSimon Marchi <simon.marchi@ericsson.com>
Mon, 20 Nov 2017 03:23:20 +0000 (22:23 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 20 Nov 2017 03:23:20 +0000 (22:23 -0500)
commit0b360f1926cb15edc39c661dac2f1a433fb288c0
treec8e60ddc84015ce93749078c85fde732d6e3b1fe
parent9c512d88c36689cffc3caf5875bc4a08b0ea05f4
Remove usage of find_inferior in win32-i386-low.c

Straightforward replacement of find_inferior with the overload of
for_each_thread that filters on pid.  I am able to build-test this
patch, but not run it.

gdb/gdbserver/ChangeLog:

* win32-i386-low.c (update_debug_registers_callback): Rename
to ...
(update_debug_registers): ... this, return void, remove pid_p arg.
(x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
gdb/gdbserver/ChangeLog
gdb/gdbserver/win32-i386-low.c