* corefile.c (reopen_exec_file): Close any open files.
This commit is contained in:
parent
5550a9142a
commit
939643d727
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
|
* corefile.c (reopen_exec_file): Close any open files.
|
||||||
|
|
||||||
2008-04-29 Joel Brobecker <brobecker@adacore.com>
|
2008-04-29 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* ia64-tdep.c (ia64_memory_remove_breakpoint): Set
|
* ia64-tdep.c (ia64_memory_remove_breakpoint): Set
|
||||||
|
|
|
@ -164,6 +164,11 @@ reopen_exec_file (void)
|
||||||
|
|
||||||
if (exec_bfd_mtime && exec_bfd_mtime != st.st_mtime)
|
if (exec_bfd_mtime && exec_bfd_mtime != st.st_mtime)
|
||||||
exec_file_attach (filename, 0);
|
exec_file_attach (filename, 0);
|
||||||
|
else
|
||||||
|
/* If we accessed the file since last opening it, close it now;
|
||||||
|
this stops GDB from holding the executable open after it
|
||||||
|
exits. */
|
||||||
|
bfd_cache_close_all ();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue