gdb: sparc: split real and pseudo registers.
authorIvo Raisr <ivo.raisr@oracle.com>
Mon, 16 Jan 2017 16:45:48 +0000 (08:45 -0800)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Mon, 16 Jan 2017 16:45:48 +0000 (08:45 -0800)
commit7a36499abc7d110e83cb60f4895d0fcfbab43bf4
tree4e6aa21b87b5ed2e02b0c7e16d8449b022d976ce
parent6aa1df2d44358bc3f098af76b0825dacc0a68bb6
gdb: sparc: split real and pseudo registers.

gdb/ChangeLog:

2017-01-16  Ivo Raisr  <ivo.raisr@oracle.com>

Split real and pseudo registers.
* sparc-tdep.h (SPARC_CORE_REGISTERS): New macro.
(sparc32_pseudo_regnum): New enum.
* sparc64-tdep.h (sparc64_pseudo_regnum): New enum.
* sparc-tdep.c (SPARC32_FPU_REGISTERS): New macro.
(SPARC32_CP0_REGISTERS): New macro.
(sparc32_pseudo_register_name): New function.
(sparc32_register_name): Use sparc32_pseudo_register_name.
(sparc32_pseudo_register_type): New function.
(sparc32_register_type): Use sparc32_pseudo_register_type.
(sparc32_pseudo_register_read, sparc32_pseudo_register_write): Handle
pseudo register numbers.
* sparc64-tdep.c SPARC64_FPU_REGISTERS): New macro.
(SPARC64_CP0_REGISTERS): New macro.
(sparc64_pseudo_register_name): New function.
(sparc64_register_name): Use sparc64_pseudo_register_name.
(sparc64_pseudo_register_type): New function.
(sparc64_register_type): Use sparc64_pseudo_register_type.
(sparc64_pseudo_register_read, sparc64_pseudo_register_write): Handle
pseudo register numbers.
(sparc64_store_floating_fields, sparc64_extract_floating_fields,
sparc64_store_arguments): Handle pseudo register numbers.
gdb/ChangeLog
gdb/sparc-tdep.c
gdb/sparc-tdep.h
gdb/sparc64-tdep.c
gdb/sparc64-tdep.h