Change section_offsets to a std::vector
[deliverable/binutils-gdb.git] / gdb / dtrace-probe.c
index 6494a8d7ccab3f4fef5fd53037c2f4b8d312203d..85f6c01b6ab09b0fd36a5085968640f6193adfe3 100644 (file)
@@ -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.024808 seconds and 4 git commands to generate.