diff options
author | Joel Brobecker <brobecker@gnat.com> | 2009-04-14 16:48:07 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2009-04-14 16:48:07 +0000 |
commit | efbd6e753f8b2ecc1ca48efd87148bd9d0300e4a (patch) | |
tree | 0de02384e12dc438abe6fbbcf6d4b72a44883257 /gdb | |
parent | b46df7a18c12aaa5e9afbbafbd91475dc26ff621 (diff) | |
download | gdb-efbd6e753f8b2ecc1ca48efd87148bd9d0300e4a.zip gdb-efbd6e753f8b2ecc1ca48efd87148bd9d0300e4a.tar.gz gdb-efbd6e753f8b2ecc1ca48efd87148bd9d0300e4a.tar.bz2 |
* target.c (target_mourn_inferior): Call bfd_cache_close_all
after having executed the target mourn_inferior routine.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/target.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 52964ca..7e40385 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/target.c b/gdb/target.c index 86cdb71..f7366f8 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; } } |