This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[Patch] One more sh-tdep.c patch
- To: gdb-patches at sources dot redhat dot com
- Subject: [Patch] One more sh-tdep.c patch
- From: Elena Zannoni <ezannoni at cygnus dot com>
- Date: Tue, 19 Dec 2000 18:20:07 -0500 (EST)
(I am running out of subjects...)
2000-12-19 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
* sh-tdep.c (sh_print_register): Don't leave regnum 0 out of the
non-pseudo-regs group.
Index: sh-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sh-tdep.c,v
retrieving revision 1.24
diff -c -u -p -r1.24 sh-tdep.c
--- sh-tdep.c 2000/12/19 15:41:07 1.24
+++ sh-tdep.c 2000/12/19 23:18:39
@@ -1747,7 +1747,7 @@ sh_print_register (int regnum)
if (regnum < 0 || regnum >= NUM_REGS + NUM_PSEUDO_REGS)
internal_error ("Invalid register number %d\n", regnum);
- else if (regnum > 0 && regnum < NUM_REGS)
+ else if (regnum >= 0 && regnum < NUM_REGS)
{
if (TYPE_CODE (REGISTER_VIRTUAL_TYPE (regnum)) == TYPE_CODE_FLT)
sh_do_fp_register (regnum); /* FP regs */