Cleanup bfd_close() cleanups.

This commit is contained in:
Andrew Cagney
2000-05-16 02:43:39 +00:00
parent db8503c490
commit 5c65bbb629
8 changed files with 30 additions and 6 deletions

View File

@@ -295,7 +295,7 @@ core_open (filename, from_tty)
/* FIXME: should be checking for errors from bfd_close (for one thing,
on error it does not free all the storage associated with the
bfd). */
make_cleanup ((make_cleanup_func) bfd_close, temp_bfd);
make_cleanup_bfd_close (temp_bfd);
error ("\"%s\" is not a core dump: %s",
filename, bfd_errmsg (bfd_get_error ()));
}
@@ -493,7 +493,7 @@ core_file_to_sym_file (core)
/* FIXME: should be checking for errors from bfd_close (for one thing,
on error it does not free all the storage associated with the
bfd). */
make_cleanup ((make_cleanup_func) bfd_close, temp_bfd);
make_cleanup_bfd_close (temp_bfd);
error ("\"%s\" is not a core dump: %s",
core, bfd_errmsg (bfd_get_error ()));
}