From: Yao Qi Date: Tue, 25 Aug 2015 10:38:28 +0000 (+0100) Subject: Get pid rather than lwpid X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e137137b2ff267fbf33b1e47f0413292ccb40d6;p=binutils-gdb.git 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 * aarch64-linux-nat.c (debug_reg_change_callback): Call ptid_get_pid rather than ptid_get_lwp. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7ffc61b0ebf..e660cf9d703 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-08-25 Yao Qi + + * aarch64-linux-nat.c (debug_reg_change_callback): Call + ptid_get_pid rather than ptid_get_lwp. + 2015-08-24 Pedro Alves * NEWS (New commands): Mention set/show remote diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c index e7bae106159..b70c43c71be 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;