{
CORE_ADDR post_prologue_pc
= skip_prologue_using_sal (gdbarch, func_addr);
- struct compunit_symtab *cust = find_pc_compunit_symtab (func_addr);
+ struct compunit_symtab *cust = find_compunit_symtab_for_pc (func_addr);
/* LLVM backend (Clang/Flang) always emits a line note before the
prologue and another one after. We trust clang and newer Intel
static int
amd64_stack_frame_destroyed_p (struct gdbarch *gdbarch, CORE_ADDR pc)
{
- struct compunit_symtab *cust = find_pc_compunit_symtab (pc);
+ struct compunit_symtab *cust = find_compunit_symtab_for_pc (pc);
if (cust != nullptr && cust->producer () != nullptr
&& producer_is_llvm (cust->producer ()))
return 0;
bool unwind_valid_p
- = compunit_epilogue_unwind_valid (find_pc_compunit_symtab (pc));
+ = compunit_epilogue_unwind_valid (find_compunit_symtab_for_pc (pc));
if (override_p)
{
if (unwind_valid_p)
{
CORE_ADDR post_prologue_pc
= skip_prologue_using_sal (gdbarch, func_addr);
- struct compunit_symtab *cust = find_pc_compunit_symtab (func_addr);
+ struct compunit_symtab *cust = find_compunit_symtab_for_pc (func_addr);
/* Clang always emits a line note before the prologue and another
one after. We trust clang to emit usable line notes. */
{
CORE_ADDR post_prologue_pc
= skip_prologue_using_sal (gdbarch, func_addr);
- struct compunit_symtab *cust = find_pc_compunit_symtab (func_addr);
+ struct compunit_symtab *cust = find_compunit_symtab_for_pc (func_addr);
if (post_prologue_pc)
post_prologue_pc
call_site *cs = nullptr;
/* -1 as tail call PC can be already after the compilation unit range. */
- cust = find_pc_compunit_symtab (pc - 1);
+ cust = find_compunit_symtab_for_pc (pc - 1);
if (cust != nullptr)
cs = cust->find_call_site (pc);
get_selected_pc_producer_options (void)
{
CORE_ADDR pc = get_frame_pc (get_selected_frame (NULL));
- struct compunit_symtab *symtab = find_pc_compunit_symtab (pc);
+ struct compunit_symtab *symtab = find_compunit_symtab_for_pc (pc);
const char *cs;
if (symtab == NULL || symtab->producer () == NULL
{
struct compunit_symtab *cust;
- cust = find_pc_compunit_symtab (fs->pc);
+ cust = find_compunit_symtab_for_pc (fs->pc);
if (cust == NULL)
return;
block. */
if (get_frame_address_in_block_if_available (fi, &pc))
{
- struct compunit_symtab *cust = find_pc_compunit_symtab (pc);
+ struct compunit_symtab *cust = find_compunit_symtab_for_pc (pc);
if (cust != NULL
&& cust->language () != current_language->la_language
if (pc_p)
{
- struct compunit_symtab *cust = find_pc_compunit_symtab (pc);
+ struct compunit_symtab *cust = find_compunit_symtab_for_pc (pc);
if (cust != NULL)
return cust->language ();
gdbscm_gdb_exception exc {};
try
{
- cust = find_pc_compunit_symtab (pc);
+ cust = find_compunit_symtab_for_pc (pc);
if (cust != NULL && cust->objfile () != NULL)
block = block_for_pc (pc);
{
CORE_ADDR post_prologue_pc
= skip_prologue_using_sal (gdbarch, func_addr);
- struct compunit_symtab *cust = find_pc_compunit_symtab (func_addr);
+ struct compunit_symtab *cust = find_compunit_symtab_for_pc (func_addr);
/* LLVM backend (Clang/Flang) always emits a line note before the
prologue and another one after. We trust clang and newer Intel
return 0;
bool unwind_valid_p
- = compunit_epilogue_unwind_valid (find_pc_compunit_symtab (pc));
+ = compunit_epilogue_unwind_valid (find_compunit_symtab_for_pc (pc));
if (override_p)
{
if (unwind_valid_p)
fill_in_stop_func (gdbarch, ecs);
compunit_symtab *cust
- = find_pc_compunit_symtab (ecs->event_thread->stop_pc ());
+ = find_compunit_symtab_for_pc (ecs->event_thread->stop_pc ());
if (cust != nullptr && cust->language () != language_asm)
ecs->stop_func_start
= gdbarch_skip_prologue_noexcept (gdbarch, ecs->stop_func_start);
fill_in_stop_func (gdbarch, ecs);
- cust = find_pc_compunit_symtab (ecs->event_thread->stop_pc ());
+ cust = find_compunit_symtab_for_pc (ecs->event_thread->stop_pc ());
if (cust != nullptr && cust->language () != language_asm)
ecs->stop_func_start
= gdbarch_skip_prologue_noexcept (gdbarch, ecs->stop_func_start);
scoped_restore_current_program_space saver;
set_current_program_space (self->pspace);
- cust = find_pc_compunit_symtab (pc);
+ cust = find_compunit_symtab_for_pc (pc);
if (cust != NULL && cust->objfile () != NULL)
block = block_for_pc (pc);
Backward compatibility, no section. */
struct compunit_symtab *
-find_pc_compunit_symtab (CORE_ADDR pc)
+find_compunit_symtab_for_pc (CORE_ADDR pc)
{
return find_pc_sect_compunit_symtab (pc, find_pc_mapped_section (pc));
}
msymbols to the results list, and that requires that
the symbols tables are expanded. */
if ((kind & SEARCH_FUNCTION_DOMAIN) != 0
- ? (find_pc_compunit_symtab
+ ? (find_compunit_symtab_for_pc
(msymbol->value_address (objfile)) == NULL)
: (lookup_symbol_in_objfile_from_linkage_name
(objfile, msymbol->linkage_name (),
/* For functions we can do a quick check of whether the
symbol might be found via find_pc_symtab. */
if ((kind & SEARCH_FUNCTION_DOMAIN) == 0
- || (find_pc_compunit_symtab
+ || (find_compunit_symtab_for_pc
(msymbol->value_address (objfile)) == NULL))
{
if (lookup_symbol_in_objfile_from_linkage_name
/* lookup full symbol table by address. */
-extern struct compunit_symtab *find_pc_compunit_symtab (CORE_ADDR);
+extern struct compunit_symtab *find_compunit_symtab_for_pc (CORE_ADDR);
/* lookup full symbol table by address and section. */