fde->cie->ptr_size, insn_ptr,
&bytes_read, fde->initial_location);
/* Apply the objfile offset for relocatable objects. */
- fs->pc += fde->cie->unit->objfile->section_offsets[SECT_OFF_TEXT (fde->cie->unit->objfile)];
+ fs->pc += fde->cie->unit->objfile->text_section_offset ();
insn_ptr += bytes_read;
break;
continue;
gdb_assert (!objfile->section_offsets.empty ());
- offset = objfile->section_offsets[SECT_OFF_TEXT (objfile)];
+ offset = objfile->text_section_offset ();
gdb_assert (fde_table->num_entries > 0);
if (*pc < offset + fde_table->entries[0]->initial_location)