gdb: introduce objfile text_section_offset and data_section_offset methods
[deliverable/binutils-gdb.git] / gdb / coff-pe-read.c
index 047f2e5ea4c0450e1ca66bc014cd44e3fce4efbb..3ecfb3d06134418225a20efb3b0900bc5f0548ac 100644 (file)
@@ -266,7 +266,7 @@ add_pe_forwarded_sym (minimal_symbol_reader &reader,
      really be relocated properly, but nevertheless we make a stab at
      it, choosing an approach consistent with the history of this
      code.  */
-  baseaddr = objfile->section_offsets[SECT_OFF_TEXT (objfile)];
+  baseaddr = objfile->text_section_offset ();
 
   reader.record_with_info (qualified_name.c_str (), vma - baseaddr, msymtype,
                           section);
This page took 0.026847 seconds and 4 git commands to generate.