diff options
Diffstat (limited to 'gdb/irix5-nat.c')
-rw-r--r-- | gdb/irix5-nat.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/irix5-nat.c b/gdb/irix5-nat.c index f413738..110af26 100644 --- a/gdb/irix5-nat.c +++ b/gdb/irix5-nat.c @@ -792,7 +792,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. */ |