* target.c (target_mourn_inferior): Call bfd_cache_close_all

after having executed the target mourn_inferior routine.
This commit is contained in:
Joel Brobecker 2009-04-14 16:48:07 +00:00
parent b46df7a18c
commit efbd6e753f
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-04-14 Joel Brobecker <brobecker@adacore.com>
* target.c (target_mourn_inferior): Call bfd_cache_close_all
after having executed the target mourn_inferior routine.
2009-04-14 Eli Zaretskii <eliz@gnu.org>
* config/djgpp/djconfig.sh (DEPDIR): Define to "_deps", if

View File

@ -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;
}
}