diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-10-15 18:28:35 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-10-15 18:28:35 +0000 |
commit | 9de0904cce9f2bd32549eade2917c1d2b7256e14 (patch) | |
tree | 4751bae933df4c23dcb7e4ce628244dcb45ef532 /gdb/osfsolib.c | |
parent | e080a68fce6b8e73c9869a6016d726f820dee7fc (diff) | |
download | gdb-9de0904cce9f2bd32549eade2917c1d2b7256e14.zip gdb-9de0904cce9f2bd32549eade2917c1d2b7256e14.tar.gz gdb-9de0904cce9f2bd32549eade2917c1d2b7256e14.tar.bz2 |
* symfile.c (reread_symbols): Include bfd_errmsg string in error
message if bfd_close fails.
* exec.c (exec_close), solib.c (clear_solib), corelow.c
(core_close), objfiles.c (free_objfile), irix5-nat.c
(clear_solib), osfsolib.c (clear_solib), remote-utils.c
(gr_load_image): Check for errors from bfd_close.
* solib.c (look_for_base), remote-utils.c (gr_load_image),
remote-udi.c (download), corelow.c (core_open), symfile.c
(symfile_bfd_open), symfile.c (generic_load): Add comment
regarding error from bfd_close.
* remote-udi.c (download), remote-utils.c (gr_load_image): Add
comment about bogus handling of errors from bfd_openr.
* exec.c (exec_close): Add comment regarding memory leak and
dangling reference to vp->name.
Diffstat (limited to 'gdb/osfsolib.c')
-rw-r--r-- | gdb/osfsolib.c | 4 |
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. */ |