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/corefile.c | |
parent | 952dc227b2fbc938feb2c4b8b9d5a4d5ed7473ad (diff) | |
download | binutils-gdb-c04ea773f9e9764a17382e6c1e0cf5a8d24df67a.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/corefile.c')
-rw-r--r-- | gdb/corefile.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/corefile.c b/gdb/corefile.c index 7452f50b0b8..b1dbc6b6b63 100644 --- a/gdb/corefile.c +++ b/gdb/corefile.c @@ -160,10 +160,9 @@ reopen_exec_file (void) /* If the timestamp of the exec file has changed, reopen it. */ filename = xstrdup (bfd_get_filename (exec_bfd)); make_cleanup (xfree, filename); - mtime = bfd_get_mtime (exec_bfd); res = stat (filename, &st); - if (mtime && mtime != st.st_mtime) + if (exec_bfd_mtime && exec_bfd_mtime != st.st_mtime) exec_file_attach (filename, 0); #endif } |