gdb/riscv: Fix failures on rv64 in gdb.arch/riscv-reg-aliases.exp test
authorAndrew Burgess <andrew.burgess@embecosm.com>
Sat, 27 Oct 2018 09:34:04 +0000 (10:34 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 31 Oct 2018 18:03:01 +0000 (18:03 +0000)
commit92dcebf3fa5ccc1cae8fcb93eaf08ffea52957e2
treea9188e25afbcfa55ebb874559607513e3d0051da
parent68b9ac18cf6ae8d76828357982c106d57c695ad4
gdb/riscv: Fix failures on rv64 in gdb.arch/riscv-reg-aliases.exp test

The gdb.arch/riscv-reg-aliases.exp test didn't take into account that
on RV64 (and RV128) the floating point registers are represented as a
union.  This patch updates the test to handle this.

Tested against RV32 and RV64.

gdb/testsuite/ChangeLog:

* gdb.arch/riscv-reg-aliases.exp: Rewrite to take account of float
registers being unions.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/riscv-reg-aliases.exp