aboutsummaryrefslogtreecommitdiff
path: root/gdb/osfsolib.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/osfsolib.c')
-rw-r--r--gdb/osfsolib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/osfsolib.c b/gdb/osfsolib.c
index e42dec3..b7bb7aa 100644
--- a/gdb/osfsolib.c
+++ b/gdb/osfsolib.c
@@ -679,7 +679,9 @@ clear_solib()
if (so_list_head -> abfd)
{
bfd_filename = bfd_get_filename (so_list_head -> abfd);
- bfd_close (so_list_head -> abfd);
+ if (!bfd_close (so_list_head -> abfd))
+ warning ("cannot close \"%s\": %s",
+ bfd_filename, bfd_errmsg (bfd_get_error ()));
}
else
/* This happens for the executable on SVR4. */