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/source.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/source.c')
-rw-r--r-- | gdb/source.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/source.c b/gdb/source.c index 7cbd55f..2c69547 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -1127,9 +1127,9 @@ find_source_lines (struct symtab *s, int desc) perror_with_name (s->filename); if (s->objfile && s->objfile->obfd) - mtime = bfd_get_mtime (s->objfile->obfd); + mtime = s->objfile->mtime; else if (exec_bfd) - mtime = bfd_get_mtime (exec_bfd); + mtime = exec_bfd_mtime; if (mtime && mtime < st.st_mtime) warning (_("Source file is more recent than executable.")); |