From 2076c72b066ae3846b505a383e5062568fda31b2 Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Tue, 29 Jan 2002 20:24:27 +0000 Subject: [PATCH] 2002-01-28 Michael Snyder * regcache.c (legacy_read_register_gen): Need to be able to read pseudo-register as well as real register. (legacy_write_register_gen): Ditto. --- gdb/ChangeLog | 7 +++++++ gdb/regcache.c | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index db9bf3e8c6f..de213873d97 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-01-28 Michael Snyder + + * 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 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete. @@ -44,6 +50,7 @@ * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was already commented out. +>>>>>>> 1.2087 2002-01-26 Andreas Schwab * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define. diff --git a/gdb/regcache.c b/gdb/regcache.c index 2808c566d45..ab72b8c03bf 100644 --- a/gdb/regcache.c +++ b/gdb/regcache.c @@ -310,7 +310,7 @@ legacy_read_register_gen (int regnum, char *myaddr) 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); } @@ -369,7 +369,7 @@ legacy_write_register_gen (int regnum, char *myaddr) 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); } -- 2.30.2