diff options
author | Michael Snyder <msnyder@vmware.com> | 2002-01-29 20:24:27 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2002-01-29 20:24:27 +0000 |
commit | 2076c72b066ae3846b505a383e5062568fda31b2 (patch) | |
tree | a0e1a72bada7773ae69524c4cd82ffaa10f4451e /gdb/regcache.c | |
parent | 246fcdee135040fbfbe8dd38bc09fa3b6832b1ed (diff) | |
download | gdb-2076c72b066ae3846b505a383e5062568fda31b2.zip gdb-2076c72b066ae3846b505a383e5062568fda31b2.tar.gz gdb-2076c72b066ae3846b505a383e5062568fda31b2.tar.bz2 |
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.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r-- | gdb/regcache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c index 2808c56..ab72b8c 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); } |