[gdbserver, aarch64] Set usrregs to NULL in regs_info
authorYao Qi <yao.qi@linaro.org>
Thu, 9 Jul 2015 11:47:06 +0000 (12:47 +0100)
committerYao Qi <yao.qi@linaro.org>
Thu, 9 Jul 2015 11:48:09 +0000 (12:48 +0100)
commitc2d65f389a2f213d74bd78df6a75dca6eedb3bae
tree052873497a56ed909bcbc3a288b3a35bcbbd8ea9
parent37fdfe4c0083c2a6c8558c76e2bc4fbc77df7d91
[gdbserver, aarch64] Set usrregs to NULL in regs_info

Hi,
I happen to read the comments in regs_info below,

struct regs_info
{
  ...
  /* Info used when accessing registers with PTRACE_PEEKUSER /
     PTRACE_POKEUSER.  This can be NULL if all registers are
     transferred with regsets  .*/
  struct usrregs_info *usrregs;

that usrregs can be NULL if all registers are transferred with
regsets, which is exactly what aarch64-linux does.  This patch
is to set usrregs to NULL in regs_info and remove
aarch64_usrregs_info and aarch64_regmap.

gdb/gdbserver:

2015-07-09  Yao Qi  <yao.qi@linaro.org>

* linux-aarch64-low.c (aarch64_regmap): Remove.
(aarch64_usrregs_info): Remove.
(regs_info): Set field usrregs to NULL.
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch64-low.c