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.
This commit is contained in:
Yao Qi
2015-08-25 11:38:28 +01:00
parent 31a43dd5e1
commit 5e137137b2
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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.
2015-08-24 Pedro Alves <palves@redhat.com>
* NEWS (New commands): Mention set/show remote

View File

@ -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;