Fix my inept 2000-05-24 change.
authorAlan Modra <amodra@gmail.com>
Tue, 30 May 2000 07:47:56 +0000 (07:47 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 30 May 2000 07:47:56 +0000 (07:47 +0000)
binutils/ChangeLog
binutils/objdump.c

index 9bc3c191bad48821ea33766282728b6151adf1b9..3f6be9a254f9ce52af35caef64a466fa2c7f231d 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-25  DJ Delorie  <dj@cygnus.com>
 
        * resrc.c (close_input_stream): zero out cpp_pipe after closing it.
index 522f6ec217472e44a34887b359be0fd74fcd407f..4adabd2e56203b3492971d82e090bec00541af1b 100644 (file)
@@ -2653,7 +2653,7 @@ display_target_list ()
        {
          if (bfd_get_error () != bfd_error_invalid_operation)
            nonfatal (p->name);
-         bfd_close (abfd);
+         bfd_close_all_done (abfd);
          continue;
        }
 
@@ -2661,7 +2661,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);
@@ -2730,7 +2730,7 @@ display_info_table (first, last)
                putchar (' ');
              }
            if (abfd != NULL)
-             bfd_close (abfd);
+             bfd_close_all_done (abfd);
          }
        putchar ('\n');
       }
This page took 0.030658 seconds and 4 git commands to generate.