From: Jerome Guitton Date: Fri, 30 Jul 2004 12:05:45 +0000 (+0000) Subject: * inflow.c (kill_command): release file handles in BFD. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce7d45220e4ed342d4a77fcd2f312e85e1100971;p=binutils-gdb.git * inflow.c (kill_command): release file handles in BFD. * exec.c (exec_file_attach): Ditto. * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index fccfa685115..5c8cb933778 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2004-07-30 Jerome Guitton + + * inflow.c (kill_command): release file handles in BFD. + * exec.c (exec_file_attach): Ditto. + * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto. + 2004-07-29 Andrew Cagney * PROBLEMS (mips-irix): Note that it is broken. diff --git a/gdb/exec.c b/gdb/exec.c index b1f4f359b39..7719ac8feee 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -270,6 +270,7 @@ exec_file_attach (char *filename, int from_tty) if (deprecated_exec_file_display_hook) (*deprecated_exec_file_display_hook) (filename); } + bfd_cache_close_all (); } /* Process the first arg in ARGS as the new exec file. diff --git a/gdb/inflow.c b/gdb/inflow.c index f2c306c856f..9c9a59351ac 100644 --- a/gdb/inflow.c +++ b/gdb/inflow.c @@ -597,6 +597,7 @@ kill_command (char *arg, int from_tty) else print_stack_frame (get_selected_frame (), 1, SRC_AND_LOC); } + bfd_cache_close_all (); } /* Call set_sigint_trap when you need to pass a signal on to an attached diff --git a/gdb/symfile.c b/gdb/symfile.c index 4f499c1fd41..0e2d42c4cce 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -894,6 +894,7 @@ symbol_file_add_with_addrs_or_offsets (bfd *abfd, int from_tty, if (deprecated_target_new_objfile_hook) deprecated_target_new_objfile_hook (objfile); + bfd_cache_close_all (); return (objfile); }