2003-06-16 Andrew Cagney <cagney@redhat.com>
* regcache.c (do_cooked_read): Do not use register_valid_p.
This commit is contained in:
parent
f899b4b82a
commit
6f4e5a4121
|
@ -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>
|
2003-06-15 Theodore A. Roth <troth@openavr.org>
|
||||||
|
|
||||||
* avr-tdep.c (avr_register_type): Remove a blank line.
|
* avr-tdep.c (avr_register_type): Remove a blank line.
|
||||||
|
|
|
@ -423,8 +423,7 @@ static int
|
||||||
do_cooked_read (void *src, int regnum, void *buf)
|
do_cooked_read (void *src, int regnum, void *buf)
|
||||||
{
|
{
|
||||||
struct regcache *regcache = src;
|
struct regcache *regcache = src;
|
||||||
if (!regcache_valid_p (regcache, regnum)
|
if (!regcache->register_valid_p[regnum] && regcache->readonly_p)
|
||||||
&& regcache->readonly_p)
|
|
||||||
/* Don't even think about fetching a register from a read-only
|
/* 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
|
cache when the register isn't yet valid. There isn't a target
|
||||||
from which the register value can be fetched. */
|
from which the register value can be fetched. */
|
||||||
|
|
Loading…
Reference in New Issue