aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2002-04-22 22:46:40 +0000
committerMichael Snyder <msnyder@vmware.com>2002-04-22 22:46:40 +0000
commit47a73475e95599c23aca725826e85f0c057cf233 (patch)
treef103a83b548c07ef356386973cea630ba78ac233
parent6398a4776e6d52d20fe783209e0446e16ed88355 (diff)
downloadgdb-47a73475e95599c23aca725826e85f0c057cf233.zip
gdb-47a73475e95599c23aca725826e85f0c057cf233.tar.gz
gdb-47a73475e95599c23aca725826e85f0c057cf233.tar.bz2
2002-04-18 Michael Snyder <msnyder@redhat.com>
* arm-tdep.h: Change regnum defines to enums for ease of debugging.
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/arm-tdep.h39
2 files changed, 28 insertions, 19 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0751d45..d2f8200 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 a4c52dc..0fad4fd 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