diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-05-16 02:43:39 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-05-16 02:43:39 +0000 |
commit | 5c65bbb629ce9dcc1adf006de891208291d796d7 (patch) | |
tree | 24faccd99fb19e260a13350e998d5598e5ebfcd6 /gdb/utils.c | |
parent | db8503c490928bc47400ef527af5a756e93d2a22 (diff) | |
download | gdb-5c65bbb629ce9dcc1adf006de891208291d796d7.zip gdb-5c65bbb629ce9dcc1adf006de891208291d796d7.tar.gz gdb-5c65bbb629ce9dcc1adf006de891208291d796d7.tar.bz2 |
Cleanup bfd_close() cleanups.
Diffstat (limited to 'gdb/utils.c')
-rw-r--r-- | gdb/utils.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/utils.c b/gdb/utils.c index aa1fccd..3fd055ca 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -204,6 +204,18 @@ make_cleanup_freeargv (arg) } static void +do_bfd_close_cleanup (void *arg) +{ + bfd_close (arg); +} + +struct cleanup * +make_cleanup_bfd_close (bfd *abfd) +{ + return make_cleanup (do_bfd_close_cleanup, abfd); +} + +static void do_ui_file_delete (void *arg) { ui_file_delete (arg); |