Document 'set|show exec-file-mismatch (ask|warn|off)'
[binutils-gdb.git] / gdb / hppa-bsd-tdep.c
index 6575c2413c3ce1a9c1634e80b7d1f807e6b7647f..3994167a3ad9ce58535227928af3aa75a6cd99a6 100644 (file)
@@ -87,8 +87,7 @@ hppabsd_find_global_pointer (struct gdbarch *gdbarch, struct value *function)
                     we have to do it ourselves.  */
                  pltgot = extract_unsigned_integer (buf, sizeof buf,
                                                     byte_order);
-                 pltgot += ANOFFSET (sec->objfile->section_offsets,
-                                     SECT_OFF_TEXT (sec->objfile));
+                 pltgot += sec->objfile->text_section_offset ();
 
                  return pltgot;
                }