* cache.c (bfd_cache_lookup_worker): Don't abort on failing to
reopen file. (cache_btell, cache_bseek, cache_bflush, cache_bstat): Return -1 on bfd_cache_lookup failure. (cache_bread, cache_bwrite): Return 0 on the same. * bfdwin.c (bfd_get_file_window): Likewise. * hppabsd-core.c (hppabsd_core_core_file_p): Likewise. * sco5-core.c (sco5_core_file_p): Likewise. * trad-core.c (trad_unix_core_file_p): Likewise.
This commit is contained in:
parent
89feb2c412
commit
3dff57e847
6 changed files with 54 additions and 12 deletions
|
@ -140,6 +140,8 @@ hppabsd_core_core_file_p (abfd)
|
|||
FILE *stream = bfd_cache_lookup (abfd);
|
||||
struct stat statbuf;
|
||||
|
||||
if (stream == NULL)
|
||||
return NULL;
|
||||
if (fstat (fileno (stream), &statbuf) < 0)
|
||||
{
|
||||
bfd_set_error (bfd_error_system_call);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue