diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-04-22 16:17:31 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-04-22 16:17:31 +0000 |
commit | fe2e161ad6d43a9f95c6ecbb0a1e57376632cf94 (patch) | |
tree | 4314fbc48f8116c23e5b21c4ccddc4a65282d884 /bfd/cache.c | |
parent | e5786a5cbf33935ab0c3da91d84a567d9cbdd83e (diff) | |
download | gdb-fe2e161ad6d43a9f95c6ecbb0a1e57376632cf94.zip gdb-fe2e161ad6d43a9f95c6ecbb0a1e57376632cf94.tar.gz gdb-fe2e161ad6d43a9f95c6ecbb0a1e57376632cf94.tar.bz2 |
2004-04-22 Andrew Cagney <cagney@redhat.com>
* cache.c (bfd_cache_close): Check for a previously closed file.
Diffstat (limited to 'bfd/cache.c')
-rw-r--r-- | bfd/cache.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/cache.c b/bfd/cache.c index 9146c05..0586061 100644 --- a/bfd/cache.c +++ b/bfd/cache.c @@ -336,6 +336,10 @@ bfd_cache_close (bfd *abfd) if (abfd->iovec != &cache_iovec) return TRUE; + if (abfd->iostream == NULL) + /* Previously closed. */ + return TRUE; + return bfd_cache_delete (abfd); } |