gdb/csky complete csky_dwarf_reg_to_regnum
authorJiangshuai Li <jiangshuai_li@c-sky.com>
Tue, 12 Jul 2022 01:54:58 +0000 (09:54 +0800)
committerJiangshuai Li <jiangshuai_li@c-sky.com>
Tue, 12 Jul 2022 01:54:58 +0000 (09:54 +0800)
commitd5ffc11fcbd43cb72e3ba55a52bb8df6374a8745
tree565b673cd509684ebf35b3920d6872c2d3d99530
parent242f3484dba6ae27a8fb6b673c37179fd42091e5
gdb/csky complete csky_dwarf_reg_to_regnum

For csky arch, the correspondence between Dwarf registers and GDB
registers are as follows:
dwarf regnos 0~31 ==> gdb regs r0~r31
dwarf regno  CSKY_HI_REGNUM(36) ==> gdb reg hi
dwarf regno  CSKY_LO_REGNUM(37) ==> gdb reg hi
dwarf regno  CSKY_PC_REGNUM(72) ==> gdb reg pc
dwarf regnos FV_PSEUDO_REGNO_FIRST(74)~FV_PSEUDO_REGNO_LAST(201)
==>
gdb regs s0~s127 (pseudo regs for float and vector regs)

other dwarf regnos have no corresponding gdb regs to them.
gdb/csky-tdep.c
gdb/csky-tdep.h