This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Don't require FP_REGNUM, et.al.
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 06 Apr 2002 21:16:29 -0500
- Subject: [patch] Don't require FP_REGNUM, et.al.
Hello,
More preparation for the $fp fix. This lifts the requirement that a
target architecture provide FP_REGNUM, SP_REGNUM and PC_REGNUM. Mind
you all current architectures at present provide values for all these.
committed,
Andrew
2002-04-06 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
-1. Update comment.
* gdbarch.h, gdbarch.c: Re-generate.
Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.123
diff -u -r1.123 gdbarch.sh
--- gdbarch.sh 6 Apr 2002 20:50:10 -0000 1.123
+++ gdbarch.sh 7 Apr 2002 02:10:38 -0000
@@ -434,12 +434,10 @@
# GDB's standard (or well known) register numbers. These can map onto
# a real register or a pseudo (computed) register or not be defined at
-# all (-1). FIXME: cagney/2002-04-05: As of the time of writing, only
-# the PS_REGNUM was optional - code still depends on the others (fp,
-# pc, sp) designating registers.
-v:2:SP_REGNUM:int:sp_regnum::::0:-1
-v:2:FP_REGNUM:int:fp_regnum::::0:-1
-v:2:PC_REGNUM:int:pc_regnum::::0:-1
+# all (-1).
+v:2:SP_REGNUM:int:sp_regnum::::-1:-1::0
+v:2:FP_REGNUM:int:fp_regnum::::-1:-1::0
+v:2:PC_REGNUM:int:pc_regnum::::-1:-1::0
v:2:PS_REGNUM:int:ps_regnum::::-1:-1::0
v:2:FP0_REGNUM:int:fp0_regnum::::0:-1::0
v:2:NPC_REGNUM:int:npc_regnum::::0:-1::0