/* See symtab.h. */
struct symbol *
-find_pc_sect_containing_function (CORE_ADDR pc, struct obj_section *section)
+find_symbol_for_pc_sect_maybe_inline (CORE_ADDR pc, struct obj_section *section)
{
const block *bl = block_for_pc_sect (pc, section);
/* See if we are trying to jump to another function. */
fn = get_frame_function (get_current_frame ());
- sfn = find_pc_sect_containing_function (sal.pc,
+ sfn = find_symbol_for_pc_sect_maybe_inline (sal.pc,
find_pc_mapped_section (sal.pc));
if (fn != nullptr && sfn != fn)
{
sal.pc = address;
sal.section = find_pc_overlay (address);
sal.explicit_pc = 1;
- sal.symbol = find_pc_sect_containing_function (sal.pc, sal.section);
+ sal.symbol = find_symbol_for_pc_sect_maybe_inline (sal.pc, sal.section);
std::vector<symtab_and_line> sals;
add_sal_to_sals (self, sals, sal, core_addr_to_string (address), true);
/* find_function_start_sal_1 does a linetable search, so it finds
the symtab and linenumber, but not a symbol. Fill in the
function symbol too. */
- sal.symbol = find_pc_sect_containing_function (sal.pc, sal.section);
+ sal.symbol = find_symbol_for_pc_sect_maybe_inline (sal.pc, sal.section);
return sal;
}
section. The return value will be the closest enclosing function,
which might be an inline function. */
-extern struct symbol *find_pc_sect_containing_function
+extern struct symbol *find_symbol_for_pc_sect_maybe_inline
(CORE_ADDR pc, struct obj_section *section);
/* Find the symbol at the given address. Returns NULL if no symbol