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)
commit5e137137b2ff267fbf33b1e47f0413292ccb40d6
treee4069ca158cc55c263ef9b50df22184c99721156
parent31a43dd5e1cfb8bb387885b3f641d6d2c04ac5dd
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.
gdb/ChangeLog
gdb/aarch64-linux-nat.c