aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r--gdb/gdbtypes.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 10e5850..9aa644b 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -6134,8 +6134,7 @@ builtin_type (struct objfile *objfile)
CORE_ADDR
call_site::pc () const
{
- CORE_ADDR delta = this->per_objfile->objfile->text_section_offset ();
- return m_unrelocated_pc + delta;
+ return per_objfile->relocate (m_unrelocated_pc);
}
void _initialize_gdbtypes ();