summaryrefslogtreecommitdiff
path: root/gdb/regcache.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-06-22 21:18:32 +0000
committerAndrew Cagney <cagney@redhat.com>2002-06-22 21:18:32 +0000
commit90b549841564c974affd386cbad47f68aa85e092 (patch)
treef865bbbdcc207ef29c118d65772671085501c894 /gdb/regcache.h
parent99d8350df384ccef3cbcf6c9b41af5936e0a035b (diff)
downloadgdb-90b549841564c974affd386cbad47f68aa85e092.tar.gz
* 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.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h
index 4b564a8c88e..c0f402e67d1 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);