Remove expand_symtab_containing_pc

The function expand_symtab_containing_pc is unused; remove it.
Tested by rebuilding.
This commit is contained in:
Tom Tromey 2023-02-26 09:49:02 -07:00
parent ff3b2421c6
commit 6fd9b78373
2 changed files with 0 additions and 27 deletions

View file

@ -1162,29 +1162,6 @@ matching_obj_sections (struct obj_section *obj_first,
return false;
}
/* See symtab.h. */
void
expand_symtab_containing_pc (CORE_ADDR pc, struct obj_section *section)
{
struct bound_minimal_symbol msymbol;
/* If we know that this is not a text address, return failure. This is
necessary because we loop based on texthigh and textlow, which do
not include the data ranges. */
msymbol = lookup_minimal_symbol_by_pc_section (pc, section);
if (msymbol.minsym && msymbol.minsym->data_p ())
return;
for (objfile *objfile : current_program_space->objfiles ())
{
struct compunit_symtab *cust
= objfile->find_pc_sect_compunit_symtab (msymbol, pc, section, 0);
if (cust)
return;
}
}
/* Hash function for the symbol cache. */

View file

@ -2189,10 +2189,6 @@ extern bound_minimal_symbol find_gnu_ifunc (const symbol *sym);
extern void clear_pc_function_cache (void);
/* Expand symtab containing PC, SECTION if not already expanded. */
extern void expand_symtab_containing_pc (CORE_ADDR, struct obj_section *);
/* lookup full symbol table by address. */
extern struct compunit_symtab *find_pc_compunit_symtab (CORE_ADDR);