* rs6000-nat.c (fetch_register): Don't error out unless the
register number is really bogus.
+2001-12-20 Elena Zannoni <ezannoni@redhat.com>
+
+ * rs6000-nat.c (fetch_register): Don't error out unless the
+ register number is really bogus.
+
2001-12-20 Michael Snyder <msnyder@redhat.com>
* maint.c (maintenance_info_sections): Accept new argument
/* Bogus register number. */
else if (regno > LAST_UISA_SP_REGNUM)
- fprintf_unfiltered (gdb_stderr,
- "gdb error: register no %d not implemented.\n",
- regno);
+ {
+ if (regno >= NUM_REGS)
+ fprintf_unfiltered (gdb_stderr,
+ "gdb error: register no %d not implemented.\n",
+ regno);
+ }
/* Fixed-point registers. */
else