aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-16 02:43:39 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-16 02:43:39 +0000
commit5c65bbb629ce9dcc1adf006de891208291d796d7 (patch)
tree24faccd99fb19e260a13350e998d5598e5ebfcd6 /gdb/utils.c
parentdb8503c490928bc47400ef527af5a756e93d2a22 (diff)
downloadgdb-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.c12
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);