Change section_offsets to a std::vector
[deliverable/binutils-gdb.git] / gdb / ctfread.c
index 990674e0dfc33ddf3240b93983309b6961856f45..ebf1eec6a57658c22e0dd17ca6f4b75a0458336f 100644 (file)
@@ -1165,7 +1165,7 @@ get_objfile_text_range (struct objfile *of, int *tsize)
 
   codes = bfd_get_section_by_name (abfd, ".text");
   *tsize = codes ? bfd_section_size (codes) : 0;
-  return ANOFFSET (of->section_offsets, SECT_OFF_TEXT (of));
+  return of->section_offsets[SECT_OFF_TEXT (of)];
 }
 
 /* Start a symtab for OBJFILE in CTF format.  */
This page took 0.024389 seconds and 4 git commands to generate.