diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-05-27 14:13:32 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-05-27 14:13:32 +0000 |
commit | ea45efcfe3be7fe4420af3c5ae3b08d5a51becc0 (patch) | |
tree | 418bd3a8f458c0c9af9918fa1fff000d4e7d88c2 /gdb/config/v850 | |
parent | fc23c14efc3b16df6a1c843b683352f1421861cd (diff) | |
download | gdb-ea45efcfe3be7fe4420af3c5ae3b08d5a51becc0.zip gdb-ea45efcfe3be7fe4420af3c5ae3b08d5a51becc0.tar.gz gdb-ea45efcfe3be7fe4420af3c5ae3b08d5a51becc0.tar.bz2 |
Stop GDB getting confused over r29 and FP. print $r29 and info
registers r29 gave different values.
Diffstat (limited to 'gdb/config/v850')
-rw-r--r-- | gdb/config/v850/tm-v850.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gdb/config/v850/tm-v850.h b/gdb/config/v850/tm-v850.h index c218f00..a53952e 100644 --- a/gdb/config/v850/tm-v850.h +++ b/gdb/config/v850/tm-v850.h @@ -20,7 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #define TARGET_BYTE_ORDER LITTLE_ENDIAN -#define NUM_REGS 65 +#define NUM_REGS 66 #define REGISTER_NAMES \ { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", \ @@ -32,7 +32,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ "sr8", "sr9", "sr10", "sr11", "sr12", "sr13", "sr14", "sr15", \ "sr16", "sr17", "sr18", "sr19", "sr20", "sr21", "sr22", "sr23", \ "sr24", "sr25", "sr26", "sr27", "sr28", "sr29", "sr30", "sr31", \ - "pc" } + \ + "pc", "fp" } #define REGISTER_BYTES (NUM_REGS * 4) @@ -51,13 +52,17 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #define R12_REGNUM 12 #define SAVE2_START_REGNUM 20 #define SAVE2_END_REGNUM 29 -#define FP_REGNUM 29 #define EP_REGNUM 30 #define SAVE3_START_REGNUM 31 #define SAVE3_END_REGNUM 31 #define RP_REGNUM 31 #define PS_REGNUM 37 #define PC_REGNUM 64 +#define FP_REGNUM 65 +#define FP_RAW_REGNUM 29 + +#define TARGET_READ_FP() read_register (FP_RAW_REGNUM) +#define TARGET_WRITE_FP(VAL) write_register (FP_REGNUM, (VAL)) #define REGISTER_VIRTUAL_TYPE(REG) builtin_type_int |