aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index 70a75b5..6927f3e 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -269,6 +269,18 @@ regcache_xfree (struct regcache *regcache)
}
void
+do_regcache_xfree (void *data)
+{
+ regcache_xfree (data);
+}
+
+struct cleanup *
+make_cleanup_regcache_xfree (struct regcache *regcache)
+{
+ return make_cleanup (do_regcache_xfree, regcache);
+}
+
+void
regcache_cpy (struct regcache *dst, struct regcache *src)
{
int i;