aarch64/gdbserver: fix floating point registers display
authorCatalin Udma <catalin.udma@freescale.com>
Tue, 16 Dec 2014 07:51:42 +0000 (09:51 +0200)
committerCatalin Udma <catalin.udma@freescale.com>
Tue, 16 Dec 2014 07:51:42 +0000 (09:51 +0200)
commitbf330350c212fb8880faab663f5b3565319d0a95
tree3ed47f08fda36a345b4793c58f8c7e2c7b9ccd2d
parent8fda9068191372d8282648986055493be17feff0
aarch64/gdbserver: fix floating point registers display

When using aarch64 gdb with gdbserver, floating point registers are
not correctly displayed, as below:
  (gdb) info registers fpsr fpcr
  fpsr           <unavailable>
  fpcr           <unavailable>

To fix these problems, the missing fpsr and fpcr registers are added
when floating point registers are read/write
Add test for aarch64 floating point
PR server/17457

gdb/gdbserver/

    PR server/17457
    * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
    (AARCH64_FPCR_REGNO): Likewise.
    (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
    (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
    (aarch64_store_fpregset): Likewise.

gdb/testsuite/

    PR server/17457
    * gdb.arch/aarch64-fp.c: New file.
    * gdb.arch/aarch64-fp.exp: New file.

Signed-off-by: Catalin Udma <catalin.udma@freescale.com>
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch64-low.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/aarch64-fp.c [new file with mode: 0644]
gdb/testsuite/gdb.arch/aarch64-fp.exp [new file with mode: 0644]