forked from Imagelibrary/binutils-gdb
Make aarch64_notify_debug_reg_change the same on GDB and GDBserver
gdb: 2015-08-25 Yao Qi <yao.qi@linaro.org> * aarch64-linux-nat.c (aarch64_notify_debug_reg_change): Call current_lwp_ptid. gdb/gdbserver: 2015-08-25 Yao Qi <yao.qi@linaro.org> * linux-aarch64-low.c (aarch64_notify_debug_reg_change): Call current_lwp_ptid.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2015-08-25 Yao Qi <yao.qi@linaro.org>
|
||||
|
||||
* aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
|
||||
Call current_lwp_ptid.
|
||||
|
||||
2015-08-25 Yao Qi <yao.qi@linaro.org>
|
||||
|
||||
* aarch64-linux-nat.c (debug_reg_change_callback): Use
|
||||
|
||||
@@ -224,7 +224,7 @@ aarch64_notify_debug_reg_change (const struct aarch64_debug_reg_state *state,
|
||||
int is_watchpoint, unsigned int idx)
|
||||
{
|
||||
struct aarch64_dr_update_callback_param param;
|
||||
ptid_t pid_ptid = pid_to_ptid (ptid_get_pid (inferior_ptid));
|
||||
ptid_t pid_ptid = pid_to_ptid (ptid_get_pid (current_lwp_ptid ()));
|
||||
|
||||
param.is_watchpoint = is_watchpoint;
|
||||
param.idx = idx;
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
2015-08-25 Yao Qi <yao.qi@linaro.org>
|
||||
|
||||
* linux-aarch64-low.c (aarch64_notify_debug_reg_change):
|
||||
Call current_lwp_ptid.
|
||||
|
||||
2015-08-25 Yao Qi <yao.qi@linaro.org>
|
||||
|
||||
* linux-aarch64-low.c (debug_reg_change_callback): Use
|
||||
|
||||
@@ -307,7 +307,7 @@ aarch64_notify_debug_reg_change (const struct aarch64_debug_reg_state *state,
|
||||
int is_watchpoint, unsigned int idx)
|
||||
{
|
||||
struct aarch64_dr_update_callback_param param;
|
||||
ptid_t pid_ptid = pid_to_ptid (pid_of (current_thread));
|
||||
ptid_t pid_ptid = pid_to_ptid (ptid_get_pid (current_lwp_ptid ()));
|
||||
|
||||
param.is_watchpoint = is_watchpoint;
|
||||
param.idx = idx;
|
||||
|
||||
Reference in New Issue
Block a user