Change section_offsets to a std::vector
[deliverable/binutils-gdb.git] / gdb / symmisc.c
index b6f1a986ca34dec05bbbe9bd77bf13e7cd0d4879..a5b17ffa3810e4c8a6b5440178515b651421e611 100644 (file)
@@ -240,8 +240,7 @@ dump_msymbols (struct objfile *objfile, struct ui_file *outfile)
       /* Use the relocated address as shown in the symbol here -- do
         not try to respect copy relocations.  */
       CORE_ADDR addr = (msymbol->value.address
-                       + ANOFFSET (objfile->section_offsets,
-                                   msymbol->section));
+                       + objfile->section_offsets[msymbol->section]);
       fputs_filtered (paddress (gdbarch, addr), outfile);
       fprintf_filtered (outfile, " %s", msymbol->linkage_name ());
       if (section)
This page took 0.023921 seconds and 4 git commands to generate.