From 37e7137227c7cd963cd8d69d87a75a7838c15f67 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sat, 22 Jun 2002 21:18:32 +0000 Subject: * 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. --- gdb/regcache.h | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'gdb/regcache.h') 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); -- cgit v1.1