diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-20 21:54:11 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-02-06 16:03:46 -0500 |
commit | 652099717dbb767c9d3eaed4c533486dd99d5e5b (patch) | |
tree | 1165879a9bb9e6d433559addb0e492e602d7c4c5 /gdb/source-cache.c | |
parent | 012cfab919e7da355b2ac7f86674211cbce26041 (diff) | |
download | gdb-652099717dbb767c9d3eaed4c533486dd99d5e5b.zip gdb-652099717dbb767c9d3eaed4c533486dd99d5e5b.tar.gz gdb-652099717dbb767c9d3eaed4c533486dd99d5e5b.tar.bz2 |
gdb: remove SYMTAB_OBJFILE macro
Remove the macro, replace with an equivalent method.
Change-Id: I8f9ecd290ad28502e53c1ceca5006ba78bf042eb
Diffstat (limited to 'gdb/source-cache.c')
-rw-r--r-- | gdb/source-cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/source-cache.c b/gdb/source-cache.c index d2447ca..bfd4760 100644 --- a/gdb/source-cache.c +++ b/gdb/source-cache.c @@ -107,8 +107,8 @@ source_cache::get_plain_source_lines (struct symtab *s, perror_with_name (symtab_to_filename_for_display (s)); time_t mtime = 0; - if (SYMTAB_OBJFILE (s) != NULL && SYMTAB_OBJFILE (s)->obfd != NULL) - mtime = SYMTAB_OBJFILE (s)->mtime; + if (s->objfile () != NULL && s->objfile ()->obfd != NULL) + mtime = s->objfile ()->mtime; else if (current_program_space->exec_bfd ()) mtime = current_program_space->ebfd_mtime; |