mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-02 06:54:54 +00:00
Ensure bfd_close after bfd_openw so we don't get multiple bfd_openw
calls for same file.
This commit is contained in:
parent
e0c9811a90
commit
f190c5c4e9
@ -1,3 +1,8 @@
|
||||
2000-05-24 Alan Modra <alan@linuxcare.com.au>
|
||||
|
||||
* objdump.c (display_target_list): Close the bfd.
|
||||
(display_info_table): Likewise.
|
||||
|
||||
2000-05-14 H.J. Lu (hjl@gnu.org)
|
||||
|
||||
* objcopy.c (filter_symbols): Don't strip global symbols in
|
||||
|
@ -2653,6 +2653,7 @@ display_target_list ()
|
||||
{
|
||||
if (bfd_get_error () != bfd_error_invalid_operation)
|
||||
nonfatal (p->name);
|
||||
bfd_close (abfd);
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -2660,6 +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);
|
||||
}
|
||||
unlink (dummy_name);
|
||||
free (dummy_name);
|
||||
@ -2727,6 +2729,8 @@ display_info_table (first, last)
|
||||
putchar ('-');
|
||||
putchar (' ');
|
||||
}
|
||||
if (abfd != NULL)
|
||||
bfd_close (abfd);
|
||||
}
|
||||
putchar ('\n');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user