diff options
author | Yao Qi <yao.qi@linaro.org> | 2015-08-25 11:38:28 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2015-08-25 11:39:12 +0100 |
commit | 5e137137b2ff267fbf33b1e47f0413292ccb40d6 (patch) | |
tree | e4069ca158cc55c263ef9b50df22184c99721156 /gdb/aarch64-linux-nat.c | |
parent | 31a43dd5e1cfb8bb387885b3f641d6d2c04ac5dd (diff) | |
download | gdb-5e137137b2ff267fbf33b1e47f0413292ccb40d6.zip gdb-5e137137b2ff267fbf33b1e47f0413292ccb40d6.tar.gz gdb-5e137137b2ff267fbf33b1e47f0413292ccb40d6.tar.bz2 |
Get pid rather than lwpid
We print PID rather than LWPID in the debug output, so we need call
ptid_get_pid in debug_reg_change_callback.
gdb:
2015-08-25 Yao Qi <yao.qi@linaro.org>
* aarch64-linux-nat.c (debug_reg_change_callback): Call
ptid_get_pid rather than ptid_get_lwp.
Diffstat (limited to 'gdb/aarch64-linux-nat.c')
-rw-r--r-- | gdb/aarch64-linux-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c index e7bae10..b70c43c 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_lwp (lwp->ptid); + int pid = ptid_get_pid (lwp->ptid); int idx = param_p->idx; int is_watchpoint = param_p->is_watchpoint; struct arch_lwp_info *info = lwp->arch_private; |