2004-04-22 Andrew Cagney <cagney@redhat.com>

* cache.c (bfd_cache_close): Check for a previously closed file.
This commit is contained in:
Andrew Cagney 2004-04-22 16:17:31 +00:00
parent e5786a5cbf
commit fe2e161ad6
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2004-04-22 Andrew Cagney <cagney@redhat.com>
* cache.c (bfd_cache_close): Check for a previously closed file.
2004-04-22 Jakub Jelinek <jakub@redhat.com>
* bfd.c (bfd_get_synthetic_symtab): Define.

View file

@ -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);
}