aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2015-08-25 11:38:29 +0100
committerYao Qi <yao.qi@linaro.org>2015-08-25 11:39:13 +0100
commit75e1f0f7a0992835415e9bb924ec21a9aac6d5a1 (patch)
tree3c2ad2c18242df1c9b28afd7697d7b9c197394da /gdb
parent4a8a7965f233f571b78f7992292a31c990c15a5e (diff)
downloadgdb-75e1f0f7a0992835415e9bb924ec21a9aac6d5a1.zip
gdb-75e1f0f7a0992835415e9bb924ec21a9aac6d5a1.tar.gz
gdb-75e1f0f7a0992835415e9bb924ec21a9aac6d5a1.tar.bz2
Make debug_reg_change_callback the same on GDB and GDBserver
This patch makes function debug_reg_change_callback in GDB and GDBserver look the same, so that the following patch can move them to nat/aarch64-linux-hw-point.c. gdb: 2015-08-25 Yao Qi <yao.qi@linaro.org> * aarch64-linux-nat.c (debug_reg_change_callback): Use ptid_of_lwp to get ptid of lwp. gdb/gdbserver: 2015-08-25 Yao Qi <yao.qi@linaro.org> * linux-aarch64-low.c (debug_reg_change_callback): Use ptid_of_lwp to get ptid of lwp.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/aarch64-linux-nat.c2
-rw-r--r--gdb/gdbserver/linux-aarch64-low.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c
index 867f8c4..354d8f8 100644
--- a/gdb/aarch64-linux-nat.c
+++ b/gdb/aarch64-linux-nat.c
@@ -165,7 +165,7 @@ debug_reg_change_callback (struct lwp_info *lwp, void *ptr)
{
struct aarch64_dr_update_callback_param *param_p
= (struct aarch64_dr_update_callback_param *) ptr;
- int pid = ptid_get_pid (lwp->ptid);
+ int pid = ptid_get_pid (ptid_of_lwp (lwp));
int idx = param_p->idx;
int is_watchpoint = param_p->is_watchpoint;
struct arch_lwp_info *info = lwp->arch_private;
diff --git a/gdb/gdbserver/linux-aarch64-low.c b/gdb/gdbserver/linux-aarch64-low.c
index bfff7e4..4c482a9 100644
--- a/gdb/gdbserver/linux-aarch64-low.c
+++ b/gdb/gdbserver/linux-aarch64-low.c
@@ -252,7 +252,7 @@ debug_reg_change_callback (struct lwp_info *lwp, void *ptr)
{
struct aarch64_dr_update_callback_param *param_p
= (struct aarch64_dr_update_callback_param *) ptr;
- int pid = pid_of (lwp->thread);
+ int pid = ptid_get_pid (ptid_of_lwp (lwp));
int idx = param_p->idx;
int is_watchpoint = param_p->is_watchpoint;
struct arch_lwp_info *info = lwp->arch_private;