Returns 0 if function is not known. */
struct symbol *
-find_pc_sect_function (CORE_ADDR pc, struct obj_section *section)
+find_symbol_for_pc_sect (CORE_ADDR pc, struct obj_section *section)
{
const struct block *b = block_for_pc_sect (pc, section);
struct symbol *
find_symbol_for_pc (CORE_ADDR pc)
{
- return find_pc_sect_function (pc, find_pc_mapped_section (pc));
+ return find_symbol_for_pc_sect (pc, find_pc_mapped_section (pc));
}
/* See symtab.h. */
address of the function. This will happen when the function
has more than one range and the entry pc is not within the
lowest range of addresses. */
- f = find_pc_sect_function (mapped_pc, section);
+ f = find_symbol_for_pc_sect (mapped_pc, section);
if (f != NULL
&& (msymbol.minsym == NULL
|| (f->value_block ()->entry_pc ()
tp->number, tp->static_trace_marker_id.c_str ());
symtab_and_line sal2 = find_pc_line (tpmarker->address, 0);
- sym = find_pc_sect_function (tpmarker->address, NULL);
+ sym = find_symbol_for_pc_sect (tpmarker->address, NULL);
uiout->text ("Now in ");
if (sym)
{
symbols anyway). */
bound_minimal_symbol msymbol
= lookup_minimal_symbol_by_pc_section (addr, section);
- symbol = find_pc_sect_function (addr, section);
+ symbol = find_symbol_for_pc_sect (addr, section);
if (symbol)
{
switch_to_program_space_and_thread (sal->pspace);
- symbol *sym = find_pc_sect_function (sal->pc, sal->section);
+ symbol *sym = find_symbol_for_pc_sect (sal->pc, sal->section);
objfile *objfile;
CORE_ADDR pc;
obj_section *section;
return value will not be an inlined function; the containing
function will be returned instead. */
-extern struct symbol *find_pc_sect_function (CORE_ADDR, struct obj_section *);
+extern struct symbol *find_symbol_for_pc_sect (CORE_ADDR, struct obj_section *);
/* lookup the function symbol corresponding to the address and
section. The return value will be the closest enclosing function,
uiout->field_core_addr ("addr", marker.gdbarch, marker.address);
sal = find_pc_line (marker.address, 0);
- sym = find_pc_sect_function (marker.address, NULL);
+ sym = find_symbol_for_pc_sect (marker.address, NULL);
if (sym)
{
uiout->text ("in ");