From 47a73475e95599c23aca725826e85f0c057cf233 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Mon, 22 Apr 2002 22:46:40 +0000 Subject: [PATCH] 2002-04-18 Michael Snyder * arm-tdep.h: Change regnum defines to enums for ease of debugging. --- gdb/ChangeLog | 8 ++++++++ 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 + + * arm-tdep.h: Change regnum defines to enums for ease of debugging. + 2002-04-22 Jason Thorpe * vax-tdep.c (vax_frame_chain): New function. @@ -387,6 +391,10 @@ * MAINTAINERS: Add myself to write-after-approval. +2002-04-17 Michael Snyder + + * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm. + 2002-04-17 Andrew Cagney * 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 -- 2.30.2