diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-06-22 21:18:32 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-06-22 21:18:32 +0000 |
commit | 37e7137227c7cd963cd8d69d87a75a7838c15f67 (patch) | |
tree | c0e7cc35400325666bf469583e237c475ac1f029 /gdb/regcache.h | |
parent | bf1024d6980c86296af8283c48b32c6705f574e8 (diff) | |
download | gdb-37e7137227c7cd963cd8d69d87a75a7838c15f67.zip gdb-37e7137227c7cd963cd8d69d87a75a7838c15f67.tar.gz gdb-37e7137227c7cd963cd8d69d87a75a7838c15f67.tar.bz2 |
* regcache.h: Update comments describing the regcache_cpy family
of functions.
(regcache_save, regcache_restore): Delete declaration.
(regcache_save_no_passthrough): Delete declaration.
(regcache_restore_no_passthrough): Delete declaration.
* regcache.c (regcache_save): Delete function.
(regcache_save_no_passthrough): Delete function.
(regcache_restore): Delete function.
(regcache_restore_no_passthrough): Delete function.
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r-- | gdb/regcache.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h index 4b564a8..c0f402e 100644 --- a/gdb/regcache.h +++ b/gdb/regcache.h @@ -58,18 +58,16 @@ extern char *registers; extern signed char *register_valid; -/* Save/restore the register cache using the regbuf. The operation is - write through - it is strictly for code that needs to restore the - target's registers to a previous state. +/* 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. + + The ``cpy'' functions can not have overlapping SRC and DST buffers. ``no passthrough'' versions do not go through to the target. They - only save values already in the cache. */ + only transfer values already in the cache. */ -extern void regcache_save (struct regcache *regcache); -extern void regcache_restore (struct regcache *regcache); extern struct regcache *regcache_dup (struct regcache *regcache); -extern void regcache_save_no_passthrough (struct regcache *regcache); -extern void regcache_restore_no_passthrough (struct regcache *regcache); extern struct regcache *regcache_dup_no_passthrough (struct regcache *regcache); extern void regcache_cpy (struct regcache *dest, struct regcache *src); extern void regcache_cpy_no_passthrough (struct regcache *dest, struct regcache *src); |