diff options
author | Michael Snyder <msnyder@specifix.com> | 2002-04-22 22:46:40 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@specifix.com> | 2002-04-22 22:46:40 +0000 |
commit | be3aae7fab86d47f79bd6713c1be79995dce9b80 (patch) | |
tree | b816f1e5fe390b827f97977018ae1346b03a71f3 | |
parent | 90e20b520745494bf4050968b962948941a8c9ef (diff) | |
download | gdb-be3aae7fab86d47f79bd6713c1be79995dce9b80.tar.gz |
2002-04-18 Michael Snyder <msnyder@redhat.com>
* arm-tdep.h: Change regnum defines to enums for ease of debugging.
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/arm-tdep.h | 39 |
2 files changed, 28 insertions, 19 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0751d45e58f..d2f82004507 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2002-04-18 Michael Snyder <msnyder@redhat.com> + + * arm-tdep.h: Change regnum defines to enums for ease of debugging. + 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com> * vax-tdep.c (vax_frame_chain): New function. @@ -387,6 +391,10 @@ * MAINTAINERS: Add myself to write-after-approval. +2002-04-17 Michael Snyder <msnyder@redhat.com> + + * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm. + 2002-04-17 Andrew Cagney <ac131313@redhat.com> * rs6000-tdep.c (frame_initial_stack_address): Use diff --git a/gdb/arm-tdep.h b/gdb/arm-tdep.h index a4c52dc6f6b..0fad4fd493f 100644 --- a/gdb/arm-tdep.h +++ b/gdb/arm-tdep.h @@ -25,25 +25,26 @@ the user is concerned but do serve to get the desired values when passed to read_register. */ -#define ARM_A1_REGNUM 0 /* first integer-like argument */ -#define ARM_A4_REGNUM 3 /* last integer-like argument */ -#define ARM_AP_REGNUM 11 -#define ARM_SP_REGNUM 13 /* Contains address of top of stack */ -#define ARM_LR_REGNUM 14 /* address to return to from a function call */ -#define ARM_PC_REGNUM 15 /* Contains program counter */ -#define ARM_F0_REGNUM 16 /* first floating point register */ -#define ARM_F3_REGNUM 19 /* last floating point argument register */ -#define ARM_F7_REGNUM 23 /* last floating point register */ -#define ARM_FPS_REGNUM 24 /* floating point status register */ -#define ARM_PS_REGNUM 25 /* Contains processor status */ - -#define ARM_FP_REGNUM 11 /* Frame register in ARM code, if used. */ -#define THUMB_FP_REGNUM 7 /* Frame register in Thumb code, if used. */ - -#define ARM_NUM_ARG_REGS 4 -#define ARM_LAST_ARG_REGNUM ARM_A4_REGNUM -#define ARM_NUM_FP_ARG_REGS 4 -#define ARM_LAST_FP_ARG_REGNUM ARM_F3_REGNUM +enum gdb_regnum { + ARM_A1_REGNUM = 0, /* first integer-like argument */ + ARM_A4_REGNUM = 3, /* last integer-like argument */ + ARM_AP_REGNUM = 11, + ARM_SP_REGNUM = 13, /* Contains address of top of stack */ + ARM_LR_REGNUM = 14, /* address to return to from a function call */ + ARM_PC_REGNUM = 15, /* Contains program counter */ + ARM_F0_REGNUM = 16, /* first floating point register */ + ARM_F3_REGNUM = 19, /* last floating point argument register */ + ARM_F7_REGNUM = 23, /* last floating point register */ + ARM_FPS_REGNUM = 24, /* floating point status register */ + ARM_PS_REGNUM = 25, /* Contains processor status */ + ARM_FP_REGNUM = 11, /* Frame register in ARM code, if used. */ + THUMB_FP_REGNUM = 7, /* Frame register in Thumb code, if used. */ + ARM_NUM_ARG_REGS = 4, + ARM_LAST_ARG_REGNUM = ARM_A4_REGNUM, + ARM_NUM_FP_ARG_REGS = 4, + ARM_LAST_FP_ARG_REGNUM = ARM_F3_REGNUM +}; + /* Size of integer registers. */ #define INT_REGISTER_RAW_SIZE 4 |