diff options
author | Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> | 2018-05-22 11:09:05 -0300 |
---|---|---|
committer | Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com> | 2018-05-22 11:52:02 -0300 |
commit | 7273b5fc4baef93f8caaed678476e8cb3625338d (patch) | |
tree | baf268a655c0d8b82b1d57d231dbcf036ecea6fc /gdb/ppc-linux-tdep.c | |
parent | 2e077f5e67aeff78e096a250bd225cd4658a35dc (diff) | |
download | gdb-7273b5fc4baef93f8caaed678476e8cb3625338d.zip gdb-7273b5fc4baef93f8caaed678476e8cb3625338d.tar.gz gdb-7273b5fc4baef93f8caaed678476e8cb3625338d.tar.bz2 |
[PowerPC] Disable regsets using zero sizes in gdbserver
Currently the linux-ppc-low.c fill/store functions for extended
regsets check whether they should execute by using the global hwcap
variable.
This patch explicitly sets the regset sizes to zero when needed to
disable them instead, so that the fill/store functions are not called
in the first place by regsets_fetch_inferior_registers in linux-low.c.
gdb/gdbserver/ChangeLog:
2018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
* linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
(ppc_store_vsxregset): Likewise.
(ppc_fill_vrregset): Likewise.
(ppc_store_vrregset): Likewise.
(ppc_fill_evrregset): Likewise.
(ppc_store_evrregset): Likewise.
(ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
(ppc_arch_setup): Iterate through ppc_regsets and set sizes when
needed.
Diffstat (limited to 'gdb/ppc-linux-tdep.c')
0 files changed, 0 insertions, 0 deletions