diff options
author | Kevin Buettner <kevinb@redhat.com> | 2010-06-24 20:38:05 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2010-06-24 20:38:05 +0000 |
commit | fd60dc691fb51f108b1e74025e4a2751dced8d32 (patch) | |
tree | e30c0543352b88167fcf456e025e669f3f8d1e35 /gdb | |
parent | 1843028924270956593a8870cce75a4033531910 (diff) | |
download | gdb-fd60dc691fb51f108b1e74025e4a2751dced8d32.zip gdb-fd60dc691fb51f108b1e74025e4a2751dced8d32.tar.gz gdb-fd60dc691fb51f108b1e74025e4a2751dced8d32.tar.bz2 |
Add "acc" register. Revise register order and names.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/rx-tdep.c | 18 |
2 files changed, 20 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d3f057e..c94b08c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2010-06-24 Kevin Buettner <kevinb@redhat.com> + + * rx-tdep.c (RX_ACC_REGNUM): Define. + (RX_NUM_REGS): Redefine to 26. + (rx_register_name): Add register "acc". Change order of several + registers. Change name of "vct" register to "fintv" to match RX + documentation. + (rx_register_type): Add case for RX_ACC_REGNUM. + 2010-06-24 Tom Tromey <tromey@redhat.com> * psymtab.c (lookup_partial_symbol): Mark definition as static. diff --git a/gdb/rx-tdep.c b/gdb/rx-tdep.c index 6506de9..de9eec6 100644 --- a/gdb/rx-tdep.c +++ b/gdb/rx-tdep.c @@ -46,7 +46,8 @@ enum RX_FP_REGNUM = 6, RX_R15_REGNUM = 15, RX_PC_REGNUM = 19, - RX_NUM_REGS = 25 + RX_ACC_REGNUM = 25, + RX_NUM_REGS = 26 }; /* Architecture specific data. */ @@ -111,15 +112,16 @@ rx_register_name (struct gdbarch *gdbarch, int regnr) "r13", "r14", "r15", - "isp", "usp", - "intb", - "pc", + "isp", "psw", - "bpc", + "pc", + "intb", "bpsw", - "vct", - "fpsw" + "bpc", + "fintv", + "fpsw", + "acc" }; return reg_names[regnr]; @@ -131,6 +133,8 @@ rx_register_type (struct gdbarch *gdbarch, int reg_nr) { if (reg_nr == RX_PC_REGNUM) return builtin_type (gdbarch)->builtin_func_ptr; + else if (reg_nr == RX_ACC_REGNUM) + return builtin_type (gdbarch)->builtin_unsigned_long_long; else return builtin_type (gdbarch)->builtin_unsigned_long; } |