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 | 7717ec508f3e4cd91629e814a9d4ab9d71899865 (patch) | |
tree | 1872008a68bef7069cefc74db2642e517b7c4bf3 /gdb/corelow.c | |
parent | 3bb7ba690ab88ffd735bf74e0915f85b6f15821b (diff) | |
download | gdb-7717ec508f3e4cd91629e814a9d4ab9d71899865.tar.gz |
Cleanup bfd_close() cleanups.
Diffstat (limited to 'gdb/corelow.c')
-rw-r--r-- | gdb/corelow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/corelow.c b/gdb/corelow.c index adcfe90df19..6cdf0d7497f 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -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 ())); } |