Change section_offsets to a std::vector
[deliverable/binutils-gdb.git] / gdb / amd64-windows-tdep.c
index 2ce391fb90615b1383c3580191ca7eae2ca58fd7..e1e777c4355e74a617527fcebee594fcf182f778 100644 (file)
@@ -953,8 +953,8 @@ amd64_windows_find_unwind_info (struct gdbarch *gdbarch, CORE_ADDR pc,
   pe = pe_data (sec->objfile->obfd);
   dir = &pe->pe_opthdr.DataDirectory[PE_EXCEPTION_TABLE];
 
-  base = pe->pe_opthdr.ImageBase
-    + ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile));
+  base = (pe->pe_opthdr.ImageBase
+         + objfile->section_offsets[SECT_OFF_TEXT (objfile)]);
   *image_base = base;
 
   /* Find the entry.
This page took 0.023369 seconds and 4 git commands to generate.