This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Add HPPA_R1_REGNUM
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 9 May 2004 22:56:54 +0200 (CEST)
- Subject: [PATCH] Add HPPA_R1_REGNUM
Would be convenient to have for *BSD host support. I also tagged the
enum for consistency with other code in GDB.
Committed,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
Index: hppa-tdep.h
===================================================================
RCS file: /cvs/src/src/gdb/hppa-tdep.h,v
retrieving revision 1.7
diff -u -p -r1.7 hppa-tdep.h
--- hppa-tdep.h 9 May 2004 20:51:48 -0000 1.7
+++ hppa-tdep.h 9 May 2004 20:54:56 -0000
@@ -32,9 +32,11 @@ enum { HPPA_INSTRUCTION_SIZE = 4 };
to be actual register numbers as far as the user is concerned
but do serve to get the desired values when passed to read_register. */
-enum {
+enum hppa_regnum
+{
HPPA_R0_REGNUM = 0, /* Doesn't actually exist, used as base for
other r registers. */
+ HPPA_R1_REGNUM = 1,
HPPA_FLAGS_REGNUM = 0, /* Various status flags */
HPPA_RP_REGNUM = 2, /* return pointer */
HPPA_FP_REGNUM = 3, /* The ABI's frame pointer, when used */