* 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.
This commit is contained in:
parent
952dc227b2
commit
c04ea773f9
7 changed files with 23 additions and 20 deletions
|
@ -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."));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue