Fix arm-netbsd build error: convert from FPA to VFP
authorChristian Biesinger <cbiesinger@google.com>
Mon, 2 Mar 2020 17:28:14 +0000 (11:28 -0600)
committerChristian Biesinger <cbiesinger@google.com>
Mon, 2 Mar 2020 17:28:47 +0000 (11:28 -0600)
commit81b86b9702b5be9d022e9b0c96c1ee2ce339b5b9
tree157742e48f09ad3121ab8a4c368305a0090470d0
parent24ed6739b699f329c2c45aedee5f8c7d2f54e493
Fix arm-netbsd build error: convert from FPA to VFP

The floating point register interface has changed to this:
https://github.com/NetBSD/src/blob/trunk/sys/arch/arm/include/reg.h

It now uses VFP instead of FPA registers. This patch updates
arm-nbsd-nat.c accordingly.

Also implements read_description so that these registers are correctly
printed by "info registers" et al.

Tested by compiling & running on arm-netbsd on qemu.

gdb/ChangeLog:

2020-03-02  Christian Biesinger  <cbiesinger@google.com>

* arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
(arm_supply_vfpregset): ...this, and update to use VFP registers.
(fetch_fp_register): Update.
(fetch_fp_regs): Update.
(store_fp_register): Update.
(store_fp_regs): Update.
(arm_netbsd_nat_target::read_description): New function.
(fetch_elfcore_registers): Update.
gdb/ChangeLog
gdb/arm-nbsd-nat.c