diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-05-22 09:02:23 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-05-22 09:02:23 +0000 |
commit | 8bc03e33b431d1eb24d0bf62bd6de8541cc8a587 (patch) | |
tree | 9b21100bd147ba7660ed8beef02555b41563366a /gdb/objfiles.c | |
parent | d9d44fe4c56f9fbb4e2db06384fc6ec08aa4bfd9 (diff) | |
download | gdb-8bc03e33b431d1eb24d0bf62bd6de8541cc8a587.tar.gz |
Purge (almost) make_cleanup_func.
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 11 |
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. */ |