diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-11-07 02:40:28 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-11-07 02:40:28 +0000 |
commit | 8262ee2317b7e0652a3bce7d82f0606b573e79a1 (patch) | |
tree | b7fa390056339a908f563c5e451d73c8afc8570f /gdb/regcache.h | |
parent | 78e1bb40455fb219ff586f0d13c5175a01acdde1 (diff) | |
download | fsf-binutils-gdb-8262ee2317b7e0652a3bce7d82f0606b573e79a1.zip fsf-binutils-gdb-8262ee2317b7e0652a3bce7d82f0606b573e79a1.tar.gz fsf-binutils-gdb-8262ee2317b7e0652a3bce7d82f0606b573e79a1.tar.bz2 |
2002-11-06 Andrew Cagney <ac131313@redhat.com>
* regcache.h (deprecated_register_valid): Rename register_valid.
* regcache.c: Update.
* ia64-aix-nat.c: Update.
* i386gnu-nat.c: Update.
* alpha-nat.c: Update.
* sparc-nat.c: Update.
* lynx-nat.c: Update.
* remote-mips.c: Update.
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r-- | gdb/regcache.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h index a15fc36..e2c17fd 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -149,12 +149,6 @@ extern int max_register_size (struct gdbarch *gdbarch); extern char *registers; -/* DEPRECATED: Character array containing the current state of each - register (unavailable<0, invalid=0, valid>0) for the most recently - referenced thread. */ - -extern signed char *register_valid; - /* Copy/duplicate the contents of a register cache. By default, the operation is pass-through. Writes to DST and reads from SRC will go through to the target. @@ -188,6 +182,17 @@ extern char *deprecated_grub_regcache_for_register_valid (struct regcache *); extern void deprecated_read_register_gen (int regnum, char *myaddr); extern void deprecated_write_register_gen (int regnum, char *myaddr); +/* Character array containing the current state of each register + (unavailable<0, invalid=0, valid>0) for the most recently + referenced thread. This global is often found in close proximity + to code that is directly manipulating the deprecated_registers[] + array. In such cases, it should be possible to replace the lot + with a call to supply_register(). If you find yourself in dire + straits, still needing access to the cache status bit, the + regcache_valid_p() and set_register_cached() functions are + available. */ +extern signed char *deprecated_register_valid; + extern int register_cached (int regnum); extern void set_register_cached (int regnum, int state); |