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 | 74b7792f0fcae41f7c7da524527b7261a3fd68c4 (patch) | |
tree | b88a9a20c59780f3b51c4819b6dea5acce3ec446 /gdb/objfiles.c | |
parent | 32c092c3fab0ca778242005a793cc4641c3e1b4b (diff) | |
download | gdb-74b7792f0fcae41f7c7da524527b7261a3fd68c4.zip gdb-74b7792f0fcae41f7c7da524527b7261a3fd68c4.tar.gz gdb-74b7792f0fcae41f7c7da524527b7261a3fd68c4.tar.bz2 |
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 d307c2a..126cfcc 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. */ |