+2002-01-28 Michael Snyder <msnyder@redhat.com>
+
+ * regcache.c (legacy_read_register_gen): Need to be able to
+ read pseudo-register as well as real register.
+ (legacy_write_register_gen): Ditto.
+
2002-01-28 Andrew Cagney <ac131313@redhat.com>
* config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
* config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
already commented out.
+>>>>>>> 1.2087
2002-01-26 Andreas Schwab <schwab@suse.de>
* config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
void
regcache_read (int rawnum, char *buf)
{
- gdb_assert (rawnum >= 0 && rawnum < NUM_REGS);
+ gdb_assert (rawnum >= 0 && rawnum < (NUM_REGS + NUM_PSEUDO_REGS));
/* For moment, just use underlying legacy code. Ulgh!!! */
legacy_read_register_gen (rawnum, buf);
}
void
regcache_write (int rawnum, char *buf)
{
- gdb_assert (rawnum >= 0 && rawnum < NUM_REGS);
+ gdb_assert (rawnum >= 0 && rawnum < (NUM_REGS + NUM_PSEUDO_REGS));
/* For moment, just use underlying legacy code. Ulgh!!! */
legacy_write_register_gen (rawnum, buf);
}