Decode properly flags of %ccr register on sparc64.
authorIvo Raisr <ivo.raisr@oracle.com>
Tue, 21 Mar 2017 11:39:33 +0000 (04:39 -0700)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Tue, 21 Mar 2017 11:39:33 +0000 (04:39 -0700)
commit5badf10a18af78c57dd4ce8e6a6ead7f46e1a878
tree3d4d010922fd18953c9d8bc52add5a146aec99a4
parent21701718895d186285e6daf04cc7342c6c88fb03
Decode properly flags of %ccr register on sparc64.

While at it, decode also properly one-bit flags for %fsr (accrued and
current exception flags were mixed up).

ChangeLog entry:
2017-03-21  Ivo Raisr  <ivo.raisr@oracle.com>

     PR tdep/20928
     * gdb/sparc-tdep.h (gdbarch_tdep) <sparc64_ccr_type>: New field.
     * gdb/sparc64-tdep.c (sparc64_ccr_type): New function.
     (sparc64_fsr_type): Fix %fsr decoding.

ChangeLog entry for testsuite:
2017-03-21  Ivo Raisr  <ivo.raisr@oracle.com>

     PR tdep/20928
     * gdb.arch/sparc64-regs.exp: New file.
     * gdb.arch/sparc64-regs.S: Likewise.
gdb/ChangeLog
gdb/sparc-tdep.h
gdb/sparc64-tdep.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/sparc64-regs.S [new file with mode: 0644]
gdb/testsuite/gdb.arch/sparc64-regs.exp [new file with mode: 0644]