From: Joel Brobecker Date: Tue, 14 Apr 2009 16:48:07 +0000 (+0000) Subject: * target.c (target_mourn_inferior): Call bfd_cache_close_all X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=2b75ea4b9590089a7a907ef88c5e8a1d75a56d3c;p=pf3gnuchains%2Fpf3gnuchains3x.git * target.c (target_mourn_inferior): Call bfd_cache_close_all after having executed the target mourn_inferior routine. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 52964cae4a..7e403858d9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-04-14 Joel Brobecker + + * target.c (target_mourn_inferior): Call bfd_cache_close_all + after having executed the target mourn_inferior routine. + 2009-04-14 Eli Zaretskii * config/djgpp/djconfig.sh (DEPDIR): Define to "_deps", if diff --git a/gdb/target.c b/gdb/target.c index 86cdb71b78..f7366f82d0 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -1941,6 +1941,12 @@ target_mourn_inferior (void) t->to_mourn_inferior (t); if (targetdebug) fprintf_unfiltered (gdb_stdlog, "target_mourn_inferior ()\n"); + + /* We no longer need to keep handles on any of the object files. + Make sure to release them to avoid unnecessarily locking any + of them while we're not actually debugging. */ + bfd_cache_close_all (); + return; } }