+2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * breakpoint.c (resolve_sal_pc): Make use of
+ bound_minimal_symbol::obj_section.
+ * maint.c (maintenance_translate_address): Likewise.
+ * minsyms.c (minimal_symbol_upper_bound): Likewise.
+ * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
+ member function.
+ * printcmd.c (info_address_command): Make use of
+ bound_minimal_symbol::obj_section.
+
2021-02-11 Alan Modra <amodra@gmail.com>
* arm-symbian-tdep.c: Delete.
bound_minimal_symbol msym = lookup_minimal_symbol_by_pc (sal->pc);
if (msym.minsym)
- sal->section = msym.minsym->obj_section (msym.objfile);
+ sal->section = msym.obj_section ();
}
}
}
const char *symbol_offset
= pulongest (address - BMSYMBOL_VALUE_ADDRESS (sym));
- sect = sym.minsym->obj_section (sym.objfile);
+ sect = sym.obj_section ();
if (sect != NULL)
{
const char *section_name;
break;
}
- obj_section = minsym.minsym->obj_section (minsym.objfile);
+ obj_section = minsym.obj_section ();
if (iter != past_the_end
&& (MSYMBOL_VALUE_ADDRESS (minsym.objfile, iter)
< obj_section_endaddr (obj_section)))
symbol is defined. */
struct objfile *objfile;
+
+ /* Return the obj_section from OBJFILE for MINSYM. */
+
+ struct obj_section *obj_section () const
+ {
+ return minsym->obj_section (objfile);
+ }
};
/* This header declares most of the API for dealing with minimal
printf_filtered ("unresolved");
else
{
- section = msym.minsym->obj_section (msym.objfile);
+ section = msym.obj_section ();
if (section
&& (section->the_bfd_section->flags & SEC_THREAD_LOCAL) != 0)