From fb101eadc0efaa6726ba84fd84c97ddd28eb29ca Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Tue, 30 May 2000 07:47:56 +0000 Subject: [PATCH] Fix my inept 2000-05-24 change. --- binutils/ChangeLog | 5 +++++ binutils/objdump.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 9bc3c191bad..3f6be9a254f 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2000-05-30 Alan Modra + + * 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 * resrc.c (close_input_stream): zero out cpp_pipe after closing it. diff --git a/binutils/objdump.c b/binutils/objdump.c index 522f6ec2174..4adabd2e562 100644 --- a/binutils/objdump.c +++ b/binutils/objdump.c @@ -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'); } -- 2.30.2