summaryrefslogtreecommitdiff
path: root/gdb/gdbcore.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2008-03-14 18:39:43 +0000
committerDaniel Jacobowitz <dan@debian.org>2008-03-14 18:39:43 +0000
commite8ec7f8ff59cb2245ad128a731968d949c97f2db (patch)
treeb39d079bf3a6d0e19ddc1cb2d6ece806f4be9536 /gdb/gdbcore.h
parent788ad6c7f67691d1bab92c522f8e1c0cd90f9533 (diff)
downloadgdb-e8ec7f8ff59cb2245ad128a731968d949c97f2db.tar.gz
* cache.c (close_one): Remove mtime hack.
* corefile.c (reopen_exec_file): Use exec_bfd_mtime. * exec.c (exec_bfd_mtime): Define. (exec_close): Clear it. (exec_file_attach): Set it. * gdbcore.h (exec_bfd_mtime): Declare. * source.c (find_source_lines): Do not use bfd_get_mtime.
Diffstat (limited to 'gdb/gdbcore.h')
-rw-r--r--gdb/gdbcore.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/gdbcore.h b/gdb/gdbcore.h
index 383cc3f96a7..6d8d2eb4680 100644
--- a/gdb/gdbcore.h
+++ b/gdb/gdbcore.h
@@ -104,6 +104,9 @@ extern void specify_exec_file_hook (void (*hook) (char *filename));
extern bfd *core_bfd;
extern bfd *exec_bfd;
+/* The mtime when we last opened exec_bfd. */
+extern long exec_bfd_mtime;
+
/* Whether to open exec and core files read-only or read-write. */
extern int write_files;