Document 'set|show exec-file-mismatch (ask|warn|off)'
[binutils-gdb.git] / gdb / hppa-bsd-tdep.c
index 34dec20298fb5217a014c19d2302e9b655247fa5..3994167a3ad9ce58535227928af3aa75a6cd99a6 100644 (file)
@@ -87,7 +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 += sec->objfile->section_offsets[SECT_OFF_TEXT (sec->objfile)];
+                 pltgot += sec->objfile->text_section_offset ();
 
                  return pltgot;
                }