Remove usages of find_inferior in linux-arm-low.c
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:22 +0000 (22:23 -0500)
commit00192f771796a144fe27f5f1d98d8e6f66976221
treea6d13f19a5cbbff28e05370135853a1bac0b11ce
parent2bee2b6ca4cb1a736f963a168dd2ded2831c540d
Remove usages of find_inferior in linux-arm-low.c

Replace two usages with the overload of for_each_thread that filters on
pid.  It allows to simplify the callback a little bit.

gdb/gdbserver/ChangeLog:

* linux-arm-low.c (struct update_registers_data): Remove.
(update_registers_callback): Return void, take arguments
directly, don't check thread's pid.
(arm_insert_point, arm_remove_point): Use for_each_thread.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-arm-low.c