]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/regcache.c
2002-11-13 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Wed, 13 Nov 2002 17:59:40 +0000 (17:59 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 13 Nov 2002 17:59:40 +0000 (17:59 +0000)
commit2d28509afbfaaf187508a0c85ae3fb98d96d185b
treedca4c352d87223e637b4749987440db0fca09200
parent067df2e5b48bf819c7edc60044bdde38b5f2ece7
2002-11-13  Andrew Cagney  <cagney@redhat.com>

* regcache.c (struct regcache): Replace passthough_p with
readonly_p.
(regcache_xmalloc): Initialize readonly_p.
(build_regcache): Initialize readonly_p.
(regcache_save): New function.
(regcache_restore): New function.
(regcache_cpy): Re-implement using regcache_save and
regcache_restore.
(regcache_raw_read): Update.
(regcache_cooked_read): When a read-only cache, checked for cached
pseudo register values.
(regcache_raw_write): Assert that the cache is not read-only.
Remove code handling a non-passthrough cache.
* regcache.h (regcache_save): Declare.
(regcache_restore): Declare.
gdb/ChangeLog
gdb/regcache.c
gdb/regcache.h