diff options
author | Alan Modra <amodra@bigpond.net.au> | 2005-10-26 12:17:42 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2005-10-26 12:17:42 +0000 |
commit | a457060cb01576ede2da07ee1760d1b32bb90086 (patch) | |
tree | 9f6671289b6a43b80be85b2d28f6985c1c0c3396 /bfd/trad-core.c | |
parent | 41285616a0bcc035d8c35f31640b257ef40e71a0 (diff) | |
download | binutils-redhat-a457060cb01576ede2da07ee1760d1b32bb90086.tar.gz |
* 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.
Diffstat (limited to 'bfd/trad-core.c')
-rw-r--r-- | bfd/trad-core.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/trad-core.c b/bfd/trad-core.c index defad69f46..c958683344 100644 --- a/bfd/trad-core.c +++ b/bfd/trad-core.c @@ -112,6 +112,8 @@ trad_unix_core_file_p (abfd) FILE *stream = bfd_cache_lookup (abfd); struct stat statbuf; + if (stream == NULL) + return 0; if (fstat (fileno (stream), &statbuf) < 0) { bfd_set_error (bfd_error_system_call); |