summaryrefslogtreecommitdiff
path: root/gdb/objfiles.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-22 09:02:23 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-22 09:02:23 +0000
commit8bc03e33b431d1eb24d0bf62bd6de8541cc8a587 (patch)
tree9b21100bd147ba7660ed8beef02555b41563366a /gdb/objfiles.c
parentd9d44fe4c56f9fbb4e2db06384fc6ec08aa4bfd9 (diff)
downloadgdb-8bc03e33b431d1eb24d0bf62bd6de8541cc8a587.tar.gz
Purge (almost) make_cleanup_func.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r--gdb/objfiles.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c
index d307c2ab85d..126cfccd2bc 100644
--- a/gdb/objfiles.c
+++ b/gdb/objfiles.c
@@ -494,6 +494,17 @@ free_objfile (objfile)
}
}
+static void
+do_free_objfile_cleanup (void *obj)
+{
+ free_objfile (obj);
+}
+
+struct cleanup *
+make_cleanup_free_objfile (struct objfile *obj)
+{
+ return make_cleanup (do_free_objfile_cleanup, obj);
+}
/* Free all the object files at once and clean up their users. */