diff options
author | Tom Tromey <tom@tromey.com> | 2020-10-29 15:04:33 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-10-29 15:04:35 -0600 |
commit | 5a36e71525564fe8767bc9f00b29dcc0fec59837 (patch) | |
tree | fd0bf48773db5a424b7e2cd9e5b18e0b08fc0770 /gdb/source-cache.c | |
parent | 784c859246ae2cf3ffa07376cfe8ec60e4526e57 (diff) | |
download | fsf-binutils-gdb-5a36e71525564fe8767bc9f00b29dcc0fec59837.zip fsf-binutils-gdb-5a36e71525564fe8767bc9f00b29dcc0fec59837.tar.gz fsf-binutils-gdb-5a36e71525564fe8767bc9f00b29dcc0fec59837.tar.bz2 |
Remove exec_bfd_mtime define
This removes the exec_bfd_mtime define, in favor of directly using the
appropriate member of the current program space.
gdb/ChangeLog
2020-10-29 Tom Tromey <tom@tromey.com>
* source-cache.c (source_cache::get_plain_source_lines): Use
current_program_space.
* corefile.c (reopen_exec_file): Use current_program_space.
* exec.c (exec_file_attach): Use current_program_space.
* exec.h (exec_bfd_mtime): Remove.
Diffstat (limited to 'gdb/source-cache.c')
-rw-r--r-- | gdb/source-cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/source-cache.c b/gdb/source-cache.c index 9196e3a..c67d087 100644 --- a/gdb/source-cache.c +++ b/gdb/source-cache.c @@ -69,7 +69,7 @@ source_cache::get_plain_source_lines (struct symtab *s, if (SYMTAB_OBJFILE (s) != NULL && SYMTAB_OBJFILE (s)->obfd != NULL) mtime = SYMTAB_OBJFILE (s)->mtime; else if (exec_bfd) - mtime = exec_bfd_mtime; + mtime = current_program_space->ebfd_mtime; if (mtime && mtime < st.st_mtime) warning (_("Source file is more recent than executable.")); |