Please find attached a patch which fixes PR tdep/20928. Register %ccr on sparcv9 (called sparc64 in gdb's speak) contains several flags {icc,xcc}.{cnvz}. They should be properly decoded such as %fprs, %pstate and %fsr is done currently. While at it, decode also properly one-bit flags of %fsr - accrued and current exception flags were mixed up. Regression test suite was run successfully with gdb 7.11 on Solaris/sparcv9. gdb's commands 'info registers' and 'info all-registers' show %ccr with correctly decoded flags. ChangeLog entry: 2016-12-05 Ivo Raisr PR tdep/20928 Decode %ccr into individual flags in sparcv9 register output. * sparc-tdep.h: Declare %ccr type. * sparc64-tdep.c: Decode %ccr. Fix %fsr decoding.