Arm/AArch64: Use a single set of Arm register set size defines
authorAlan Hayward <alan.hayward@arm.com>
Tue, 25 Jun 2019 10:02:32 +0000 (11:02 +0100)
committerAlan Hayward <alan.hayward@arm.com>
Thu, 4 Jul 2019 11:47:42 +0000 (12:47 +0100)
commit350fab54163e2dd178609d268e80bf31042d182d
treef7d48bdd52a381b2f876ae6cf3a4ac58ec29adf9
parentf0452268d6c7296106aba81f532b04dc08187352
Arm/AArch64: Use a single set of Arm register set size defines

Both targets were using a mixture of defines and hardcoded values.
Add a standard set in arch/arm.h and use throughout, ensuring that
none of the existing sizes change.

No functionality changes.

gdb/ChangeLog:

* aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
* aarch64-linux-nat.c (fetch_fpregs_from_thread)
(store_fpregs_to_thread)
(aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
* arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
(ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
(IWMMXT_REGS_SIZE): Add define.
* arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
(fetch_vfp_regs, store_vfp_regs)
(arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
* arm-tdep.c (arm_register_g_packet_guesses): Use new defines.

gdb/gdbserver/ChangeLog:

* linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
defines.
* linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
gdb/ChangeLog
gdb/aarch32-linux-nat.h
gdb/aarch64-linux-nat.c
gdb/arch/arm.h
gdb/arm-linux-nat.c
gdb/arm-tdep.c
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch32-low.c
gdb/gdbserver/linux-arm-low.c