This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] win32: bfd_cache_close after kill
- From: Jerome Guitton <guitton at act-europe dot fr>
- To: Andrew Cagney <cagney at gnu dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 30 Jul 2004 15:08:34 +0200
- Subject: [commit] win32: bfd_cache_close after kill
- References: <20040524115048.GA27758@act-europe.fr> <20040617132031.GA10371@act-europe.fr> <40D1FB3F.3060904@gnu.org> <20040729150357.GA2697@act-europe.fr> <410957E4.3000108@gnu.org>
Andrew Cagney (cagney@gnu.org):
> Just a few tweaks. Assuming there are still no regressions it's ok for
> mainline.
Thanks. I have taken your comments into account and I have checked in the
following:
2004-07-30 Jerome Guitton <guitton@gnat.com>
* 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.
Index: exec.c
===================================================================
RCS file: /cvs/src/src/gdb/exec.c,v
retrieving revision 1.38
diff -u -p -r1.38 exec.c
--- exec.c 26 Jul 2004 14:52:59 -0000 1.38
+++ exec.c 30 Jul 2004 10:42:35 -0000
@@ -270,6 +270,7 @@ exec_file_attach (char *filename, int fr
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.
Index: inflow.c
===================================================================
RCS file: /cvs/src/src/gdb/inflow.c,v
retrieving revision 1.22
diff -u -p -r1.22 inflow.c
--- inflow.c 28 Apr 2004 16:36:25 -0000 1.22
+++ inflow.c 30 Jul 2004 10:42:35 -0000
@@ -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
Index: symfile.c
===================================================================
RCS file: /cvs/src/src/gdb/symfile.c,v
retrieving revision 1.135
diff -u -p -r1.135 symfile.c
--- symfile.c 26 Jul 2004 14:53:05 -0000 1.135
+++ symfile.c 30 Jul 2004 10:42:36 -0000
@@ -894,6 +894,7 @@ symbol_file_add_with_addrs_or_offsets (b
if (deprecated_target_new_objfile_hook)
deprecated_target_new_objfile_hook (objfile);
+ bfd_cache_close_all ();
return (objfile);
}