]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix my inept 2000-05-24 change.
authorAlan Modra <amodra@gmail.com>
Tue, 30 May 2000 07:51:02 +0000 (07:51 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 30 May 2000 07:51:02 +0000 (07:51 +0000)
binutils/ChangeLog
binutils/objdump.c

index 182180d82a8becc8d33592bb7108271a53a7a59a..074d4b40f3edcb75e6c2e6971e79b06ff0933e2f 100644 (file)
@@ -1,3 +1,8 @@
+2000-05-30  Alan Modra  <alan@linuxcare.com.au>
+
+       * objdump.c (display_target_list): Use bfd_close_all_done, not
+       bfd_close to fix crash caused by 2000-05-24 change.
+
 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
 
        * ar.c: Include filenames.h.
index 97975054a4bde82edef96fedb63e841873d2d86b..d3c1ed217d59ef30c0517e04be55c1d8d50e991f 100644 (file)
@@ -2651,7 +2651,7 @@ display_target_list ()
        {
          if (bfd_get_error () != bfd_error_invalid_operation)
            nonfatal (p->name);
-         bfd_close (abfd);
+         bfd_close_all_done (abfd);
          continue;
        }
 
@@ -2659,7 +2659,7 @@ display_target_list ()
        if (bfd_set_arch_mach (abfd, (enum bfd_architecture) a, 0))
          printf ("  %s\n",
                  bfd_printable_arch_mach ((enum bfd_architecture) a, 0));
-      bfd_close (abfd);
+      bfd_close_all_done (abfd);
     }
   unlink (dummy_name);
   free (dummy_name);
@@ -2728,7 +2728,7 @@ display_info_table (first, last)
                putchar (' ');
              }
            if (abfd != NULL)
-             bfd_close (abfd);
+             bfd_close_all_done (abfd);
          }
        putchar ('\n');
       }