diff options
author | Alan Modra <amodra@gmail.com> | 2005-10-26 12:17:42 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-10-26 12:17:42 +0000 |
commit | 3dff57e8474430c098331cde4b2601944f00ae6f (patch) | |
tree | cfa1a155c8d2e748bf459ec121c0deced61d7092 /bfd/bfdwin.c | |
parent | * ld-elf/empty2.d: Allow more symbols. (diff) | |
download | binutils-gdb-3dff57e8474430c098331cde4b2601944f00ae6f.tar.gz binutils-gdb-3dff57e8474430c098331cde4b2601944f00ae6f.tar.bz2 binutils-gdb-3dff57e8474430c098331cde4b2601944f00ae6f.zip |
* 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/bfdwin.c')
-rw-r--r-- | bfd/bfdwin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/bfdwin.c b/bfd/bfdwin.c index d3e4ba83d1e..1450ab0e969 100644 --- a/bfd/bfdwin.c +++ b/bfd/bfdwin.c @@ -153,6 +153,8 @@ bfd_get_file_window (bfd *abfd, abfd = abfd->my_archive; } f = bfd_cache_lookup (abfd); + if (f == NULL) + return FALSE; fd = fileno (f); /* Compute offsets and size for mmap and for the user's data. */ |