[gdbserver] Use iterate_over_lwps in aarch64_notify_debug_reg_change
authorYao Qi <yao.qi@linaro.org>
Tue, 25 Aug 2015 10:38:28 +0000 (11:38 +0100)
committerYao Qi <yao.qi@linaro.org>
Tue, 25 Aug 2015 10:38:28 +0000 (11:38 +0100)
commitff3f0f45c5ff3505d041eba81a999b55c55f4530
tree5e731b121ea43948794e7df935ca42070a4b815b
parent9a117542138b8fa4a6ca9c7b4cf9935d509b9809
[gdbserver] Use iterate_over_lwps in aarch64_notify_debug_reg_change

This patch makes more bits on aarch64 watchpoint between GDB and GDBserver
look similar.

gdb/gdbserver:

2015-08-25  Yao Qi  <yao.qi@linaro.org>

* linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
Remove.
(debug_reg_change_callback): Remove argument entry and add argument
lwp.  Remove local variable thread.  Don't print thread id in the
debugging output.  Don't check whether pid of thread equals to pid.
(aarch64_notify_debug_reg_change): Don't set param.pid.  Call
iterate_over_lwps instead find_inferior.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch64-low.c