Merge branch 'master' into merge-job
[deliverable/binutils-gdb.git] / gdb / dtrace-probe.c
index 528378231cd6cdb67b8022debafb5e17a3bc6df9..85f6c01b6ab09b0fd36a5085968640f6193adfe3 100644 (file)
@@ -1,6 +1,6 @@
 /* DTrace probe support for GDB.
 
-   Copyright (C) 2014-2019 Free Software Foundation, Inc.
+   Copyright (C) 2014-2020 Free Software Foundation, Inc.
 
    Contributed by Oracle, Inc.
 
@@ -685,8 +685,8 @@ dtrace_probe::is_enabled () const
 CORE_ADDR
 dtrace_probe::get_relocated_address (struct objfile *objfile)
 {
-  return this->get_address () + ANOFFSET (objfile->section_offsets,
-                                         SECT_OFF_DATA (objfile));
+  return (this->get_address ()
+         + objfile->section_offsets[SECT_OFF_DATA (objfile)]);
 }
 
 /* Implementation of the get_argument_count method.  */
This page took 0.023878 seconds and 4 git commands to generate.