]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2004-04-22 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Thu, 22 Apr 2004 16:17:31 +0000 (16:17 +0000)
committerAndrew Cagney <cagney@redhat.com>
Thu, 22 Apr 2004 16:17:31 +0000 (16:17 +0000)
* cache.c (bfd_cache_close): Check for a previously closed file.

bfd/ChangeLog
bfd/cache.c

index 8ab0844e40cf7915ee68eef93a9de1b5fca2d7a7..904f0b8e823bc3f2a204f1430bd9b700be966b0f 100644 (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.
index 9146c05caca698febe0159986ad3665abcdc96d8..0586061286a75a1633bfe715109898e86ca8819a 100644 (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);
 }