Fetch and store GP registers by PTRACE_{G,S}ETREGSET
authorYao Qi <yao.qi@linaro.org>
Mon, 1 Jun 2015 11:13:02 +0000 (12:13 +0100)
committerYao Qi <yao.qi@linaro.org>
Mon, 1 Jun 2015 11:13:02 +0000 (12:13 +0100)
commit10766686b02fce9eedd6217ca76f457106a8142c
tree4362456310dd45aed69c8bcc325ad0f4c5a1f33a
parent7efe48d196f3fb6f55fc53b8021a410848c0a677
Fetch and store GP registers by PTRACE_{G,S}ETREGSET

If kernel supports PTRACE_GETREGSET, GDB uses PTRACE_{G,S}ETREGSET
to fetch and store GP registers.

gdb:

2015-06-01  Yao Qi  <yao.qi@linaro.org>

* arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
(fetch_regs): Likewise.
(store_regs): Use PTRACE_SETREGSET.
(store_register): Likewise.
gdb/ChangeLog
gdb/arm-linux-nat.c