aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-06-16 13:19:36 +0000
committerAndrew Cagney <cagney@redhat.com>2003-06-16 13:19:36 +0000
commit6f4e5a4121640be19f146b24e5c0d1332d481e00 (patch)
tree8f21d458914580e2ea6197539bc65f6505affc6a
parentf899b4b82ad679668bd93c785a4c35cf346df244 (diff)
downloadgdb-6f4e5a4121640be19f146b24e5c0d1332d481e00.zip
gdb-6f4e5a4121640be19f146b24e5c0d1332d481e00.tar.gz
gdb-6f4e5a4121640be19f146b24e5c0d1332d481e00.tar.bz2
2003-06-16 Andrew Cagney <cagney@redhat.com>
* regcache.c (do_cooked_read): Do not use register_valid_p.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/regcache.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 60ae472..5518789 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2003-06-16 Andrew Cagney <cagney@redhat.com>
+
+ * regcache.c (do_cooked_read): Do not use register_valid_p.
+
2003-06-15 Theodore A. Roth <troth@openavr.org>
* avr-tdep.c (avr_register_type): Remove a blank line.
diff --git a/gdb/regcache.c b/gdb/regcache.c
index facaab3..509390f 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -423,8 +423,7 @@ static int
do_cooked_read (void *src, int regnum, void *buf)
{
struct regcache *regcache = src;
- if (!regcache_valid_p (regcache, regnum)
- && regcache->readonly_p)
+ if (!regcache->register_valid_p[regnum] && regcache->readonly_p)
/* Don't even think about fetching a register from a read-only
cache when the register isn't yet valid. There isn't a target
from which the register value can be fetched. */