diff options
Diffstat (limited to 'gdb/corelow.c')
-rw-r--r-- | gdb/corelow.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/corelow.c b/gdb/corelow.c index 039573fa110..ead2377e89e 100644 --- a/gdb/corelow.c +++ b/gdb/corelow.c @@ -46,6 +46,7 @@ #include "solib.h" #include "filenames.h" #include "progspace.h" +#include "objfiles.h" #ifndef O_LARGEFILE @@ -221,9 +222,7 @@ core_close (int quitting) core_has_fake_pid = 0; name = bfd_get_filename (core_bfd); - if (!bfd_close (core_bfd)) - warning (_("cannot close \"%s\": %s"), - name, bfd_errmsg (bfd_get_error ())); + gdb_bfd_close_or_warn (core_bfd); xfree (name); core_bfd = NULL; } |