diff options
author | Daniel Jacobowitz <drow@false.org> | 2008-03-14 18:39:43 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2008-03-14 18:39:43 +0000 |
commit | c04ea773f9e9764a17382e6c1e0cf5a8d24df67a (patch) | |
tree | 562abf1cccaba1620d6d4edcda52252a8c3632a1 /gdb/exec.c | |
parent | 952dc227b2fbc938feb2c4b8b9d5a4d5ed7473ad (diff) | |
download | gdb-c04ea773f9e9764a17382e6c1e0cf5a8d24df67a.zip gdb-c04ea773f9e9764a17382e6c1e0cf5a8d24df67a.tar.gz gdb-c04ea773f9e9764a17382e6c1e0cf5a8d24df67a.tar.bz2 |
* 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/exec.c')
-rw-r--r-- | gdb/exec.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -69,6 +69,7 @@ struct target_ops exec_ops; /* The Binary File Descriptor handle for the executable file. */ bfd *exec_bfd = NULL; +long exec_bfd_mtime = 0; /* Whether to open exec and core files read-only or read-write. */ @@ -136,6 +137,7 @@ exec_close (int quitting) name, bfd_errmsg (bfd_get_error ())); xfree (name); exec_bfd = NULL; + exec_bfd_mtime = 0; } if (exec_ops.to_sections) @@ -260,6 +262,8 @@ exec_file_attach (char *filename, int from_tty) scratch_pathname, bfd_errmsg (bfd_get_error ())); } + exec_bfd_mtime = bfd_get_mtime (exec_bfd); + validate_files (); set_gdbarch_from_file (exec_bfd); |