]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Get pid rather than lwpid
authorYao Qi <yao.qi@linaro.org>
Tue, 25 Aug 2015 10:38:28 +0000 (11:38 +0100)
committerYao Qi <yao.qi@linaro.org>
Tue, 25 Aug 2015 10:39:12 +0000 (11:39 +0100)
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.

gdb/ChangeLog
gdb/aarch64-linux-nat.c

index 7ffc61b0ebf6ee32efe1cf0f2d4a60b26284f61e..e660cf9d7032603c61e6c3d2056c6281c82c8907 100644 (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
index e7bae106159da18f312f6588ea763e9a9c4e1a5e..b70c43c71be4f7f31bd5630582ea83263b9b93bc 100644 (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;