aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/source.c b/gdb/source.c
index f749dd6..73c1c1d 100644
--- a/gdb/source.c
+++ b/gdb/source.c
@@ -1186,7 +1186,7 @@ open_source_file (struct symtab *s)
{
if (SYMTAB_COMPUNIT (s) != nullptr)
{
- const objfile *ofp = COMPUNIT_OBJFILE (SYMTAB_COMPUNIT (s));
+ const objfile *ofp = SYMTAB_COMPUNIT (s)->objfile ();
std::string srcpath;
if (IS_ABSOLUTE_PATH (s->filename))