@@ -600,7 +600,7 @@ ada_get_tcb_types_info (void)
/* Check for the CPU offset. */
bound_minimal_symbol first_id_sym
- = lookup_bound_minimal_symbol ("__gnat_gdb_cpu_first_id");
+ = lookup_minimal_symbol ("__gnat_gdb_cpu_first_id");
unsigned int first_id = 0;
if (first_id_sym.minsym != nullptr)
{
@@ -1210,7 +1210,7 @@ variable: name_not_typename
std::string arg = copy_name ($1.stoken);
bound_minimal_symbol msymbol
- = lookup_bound_minimal_symbol (arg.c_str ());
+ = lookup_minimal_symbol (arg.c_str ());
if (msymbol.minsym == NULL)
{
if (!have_full_symbols (current_program_space)
@@ -183,14 +183,14 @@ add_pe_forwarded_sym (minimal_symbol_reader &reader,
forward_func_name);
bound_minimal_symbol msymbol
- = lookup_bound_minimal_symbol (forward_qualified_name.c_str ());
+ = lookup_minimal_symbol (forward_qualified_name.c_str ());
if (!msymbol.minsym)
{
int i;
for (i = 0; i < forward_dll_name_len; i++)
forward_qualified_name[i] = tolower (forward_qualified_name[i]);
- msymbol = lookup_bound_minimal_symbol (forward_qualified_name.c_str ());
+ msymbol = lookup_minimal_symbol (forward_qualified_name.c_str ());
}
if (!msymbol.minsym)
@@ -410,7 +410,7 @@ gcc_symbol_address (void *datum, struct gcc_c_context *gcc_context,
}
else
{
- bound_minimal_symbol msym = lookup_bound_minimal_symbol (identifier);
+ bound_minimal_symbol msym = lookup_minimal_symbol (identifier);
if (msym.minsym != NULL)
{
if (compile_debug)
@@ -453,7 +453,7 @@ gcc_cplus_symbol_address (void *datum, struct gcc_cp_context *gcc_context,
}
else
{
- bound_minimal_symbol msym = lookup_bound_minimal_symbol (identifier);
+ bound_minimal_symbol msym = lookup_minimal_symbol (identifier);
if (msym.minsym != nullptr)
{
if (compile_debug)
@@ -464,7 +464,7 @@ PrimaryExpression:
{
/* Lookup foreign name in global static symbols. */
bound_minimal_symbol msymbol
- = lookup_bound_minimal_symbol (copy.c_str ());
+ = lookup_minimal_symbol (copy.c_str ());
if (msymbol.minsym != NULL)
pstate->push_new<var_msym_value_operation> (msymbol);
else if (!have_full_symbols (current_program_space)
@@ -2057,7 +2057,7 @@ fbsd_get_thread_local_address (struct gdbarch *gdbarch, CORE_ADDR dtv_addr,
CORE_ADDR
fbsd_skip_solib_resolver (struct gdbarch *gdbarch, CORE_ADDR pc)
{
- bound_minimal_symbol msym = lookup_bound_minimal_symbol ("_rtld_bind");
+ bound_minimal_symbol msym = lookup_minimal_symbol ("_rtld_bind");
if (msym.minsym != nullptr && msym.value_address () == pc)
return frame_unwind_caller_pc (get_current_frame ());
@@ -53,7 +53,7 @@ glibc_skip_solib_resolver (struct gdbarch *gdbarch, CORE_ADDR pc)
debugging programs that use shared libraries. */
bound_minimal_symbol resolver
- = lookup_bound_minimal_symbol ("_dl_runtime_resolve");
+ = lookup_minimal_symbol ("_dl_runtime_resolve");
if (resolver.minsym)
{
@@ -572,7 +572,7 @@ variable: name_not_typename
std::string arg = copy_name ($1.stoken);
bound_minimal_symbol msymbol =
- lookup_bound_minimal_symbol (arg.c_str ());
+ lookup_minimal_symbol (arg.c_str ());
if (msymbol.minsym != NULL)
pstate->push_new<var_msym_value_operation>
(msymbol);
@@ -473,14 +473,6 @@ lookup_minimal_symbol (const char *name, objfile *objf, const char *sfile)
return {};
}
-/* See minsyms.h. */
-
-bound_minimal_symbol
-lookup_bound_minimal_symbol (const char *name)
-{
- return lookup_minimal_symbol (name);
-}
-
/* See gdbsupport/symbol.h. */
int
@@ -209,11 +209,6 @@ bound_minimal_symbol lookup_minimal_symbol (const char *name,
objfile *obj = nullptr,
const char *sfile = nullptr);
-/* Like lookup_minimal_symbol, but searches all files and
- objfiles. */
-
-bound_minimal_symbol lookup_bound_minimal_symbol (const char *);
-
/* Look through all the current minimal symbol tables and find the
first minimal symbol that matches NAME and has text type. If OBJF
is non-NULL, limit the search to that objfile. Returns a bound
@@ -468,7 +468,7 @@ static const struct tramp_frame mips64_fbsd_sigframe =
static CORE_ADDR
mips_fbsd_skip_solib_resolver (struct gdbarch *gdbarch, CORE_ADDR pc)
{
- bound_minimal_symbol msym = lookup_bound_minimal_symbol ("_mips_rtld_bind");
+ bound_minimal_symbol msym = lookup_minimal_symbol ("_mips_rtld_bind");
if (msym.minsym != nullptr && msym.value_address () == pc)
return frame_unwind_caller_pc (get_current_frame ());
@@ -1241,11 +1241,10 @@ find_objc_msgsend (void)
for (i = 0; i < nmethcalls; i++)
{
/* Try both with and without underscore. */
- bound_minimal_symbol func
- = lookup_bound_minimal_symbol (methcalls[i].name);
+ bound_minimal_symbol func = lookup_minimal_symbol (methcalls[i].name);
if ((func.minsym == NULL) && (methcalls[i].name[0] == '_'))
{
- func = lookup_bound_minimal_symbol (methcalls[i].name + 1);
+ func = lookup_minimal_symbol (methcalls[i].name + 1);
}
if (func.minsym == NULL)
{
@@ -720,7 +720,7 @@ variable: name_not_typename
std::string arg = copy_name ($1.stoken);
bound_minimal_symbol msymbol
- = lookup_bound_minimal_symbol (arg.c_str ());
+ = lookup_minimal_symbol (arg.c_str ());
if (msymbol.minsym != NULL)
pstate->push_new<var_msym_value_operation>
(msymbol);
@@ -145,7 +145,7 @@ parser_state::push_symbol (const char *name, block_symbol sym)
}
else
{
- bound_minimal_symbol msymbol = lookup_bound_minimal_symbol (name);
+ bound_minimal_symbol msymbol = lookup_minimal_symbol (name);
if (msymbol.minsym != NULL)
push_new<expr::var_msym_value_operation> (msymbol);
else if (!have_full_symbols (current_program_space)
@@ -231,7 +231,7 @@ parser_state::push_dollar (struct stoken str)
push_new<expr::var_value_operation> (sym);
return;
}
- bound_minimal_symbol msym = lookup_bound_minimal_symbol (copy.c_str ());
+ bound_minimal_symbol msym = lookup_minimal_symbol (copy.c_str ());
if (msym.minsym)
{
push_new<expr::var_msym_value_operation> (msym);
@@ -1600,7 +1600,7 @@ info_address_command (const char *exp, int from_tty)
return;
}
- bound_minimal_symbol msymbol = lookup_bound_minimal_symbol (exp);
+ bound_minimal_symbol msymbol = lookup_minimal_symbol (exp);
if (msymbol.minsym != NULL)
{
@@ -1753,7 +1753,7 @@ info_address_command (const char *exp, int from_tty)
case LOC_UNRESOLVED:
{
bound_minimal_symbol msym
- = lookup_bound_minimal_symbol (sym->linkage_name ());
+ = lookup_minimal_symbol (sym->linkage_name ());
if (msym.minsym == NULL)
gdb_printf ("unresolved");
else
@@ -3442,8 +3442,7 @@ simple_read_overlay_table (void)
return 0;
}
- bound_minimal_symbol ovly_table_msym
- = lookup_bound_minimal_symbol ("_ovly_table");
+ bound_minimal_symbol ovly_table_msym = lookup_minimal_symbol ("_ovly_table");
if (! ovly_table_msym.minsym)
{
error (_("Error reading inferior's overlay table: couldn't find "
@@ -129,7 +129,7 @@ find_function_in_inferior (const char *name, struct objfile **objf_p)
}
else
{
- bound_minimal_symbol msymbol = lookup_bound_minimal_symbol (name);
+ bound_minimal_symbol msymbol = lookup_minimal_symbol (name);
if (msymbol.minsym != NULL)
{
@@ -3121,7 +3121,7 @@ value_fn_field (struct value **arg1p, struct fn_field *f,
nullptr).symbol;
if (sym == nullptr)
{
- msym = lookup_bound_minimal_symbol (physname);
+ msym = lookup_minimal_symbol (physname);
if (msym.minsym == NULL)
return NULL;
}
@@ -908,7 +908,7 @@ z80_read_overlay_region_table ()
}
bound_minimal_symbol ovly_region_table_msym
- = lookup_bound_minimal_symbol ("_ovly_region_table");
+ = lookup_minimal_symbol ("_ovly_region_table");
if (! ovly_region_table_msym.minsym)
{
error (_("Error reading inferior's overlay table: couldn't find "