summaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-19 13:11:24 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-02-06 15:48:18 -0500
commitf1f58f102ee5f3dda04853582fcb6f22cc00329b (patch)
tree34c917ec941286ff57e3c8630aabea819acaa479 /gdb/symtab.c
parenta723766c0e2cc4e8d53813f90f1167e620da0784 (diff)
downloadbinutils-gdb-f1f58f102ee5f3dda04853582fcb6f22cc00329b.tar.gz
gdb: add getter/setter for compunit_symtab::objfile
Rename the field to m_objfile, and add a getter and a setter. Update all users. Change-Id: If7e2f763ee3e70570140d9af9261b1b056253317
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index a32e561ed77..44b5bfb43bb 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -338,7 +338,7 @@ compunit_symtab::find_call_site (CORE_ADDR pc) const
return nullptr;
CORE_ADDR delta
- = this->objfile->section_offsets[COMPUNIT_BLOCK_LINE_SECTION (this)];
+ = this->objfile ()->section_offsets[COMPUNIT_BLOCK_LINE_SECTION (this)];
CORE_ADDR unrelocated_pc = pc - delta;
struct call_site call_site_local (unrelocated_pc, nullptr, nullptr);