summaryrefslogtreecommitdiff
path: root/gdb/regcache.c
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
commite079a20fc02a8c5679f502e915b712099cf0bd5c (patch)
tree97f14b4e871ed0043b9bca4aaabacd0c06d235bf /gdb/regcache.c
parentcb7b5b417a1d9db61369d207cdf9678ba38642be (diff)
downloadgdb-e079a20fc02a8c5679f502e915b712099cf0bd5c.tar.gz
2003-06-16 Andrew Cagney <cagney@redhat.com>
* regcache.c (do_cooked_read): Do not use register_valid_p.
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index facaab38e1e..509390f9172 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. */