if (sym == NULL)
{
if (!found_sym && arg_sym != NULL)
- add_defn_to_vec (*resultp,
- fixup_symbol_section (arg_sym, objfile),
- block);
+ add_defn_to_vec (*resultp, arg_sym, block);
found_sym = false;
arg_sym = NULL;
}
else
{
found_sym = true;
- add_defn_to_vec (*resultp,
- fixup_symbol_section (sym, objfile),
- block);
+ add_defn_to_vec (*resultp, sym, block);
}
}
return true;
if (candidates.empty ())
return {};
- block_symbol info = candidates[0];
- info.symbol = fixup_symbol_section (info.symbol, NULL);
- return info;
+ return candidates[0];
}
else
{
found_sym = true;
- add_defn_to_vec (result,
- fixup_symbol_section (sym, objfile),
- block);
+ add_defn_to_vec (result, sym, block);
}
}
}
if (!found_sym && arg_sym != NULL)
{
- add_defn_to_vec (result,
- fixup_symbol_section (arg_sym, objfile),
- block);
+ add_defn_to_vec (result, arg_sym, block);
}
if (!lookup_name.ada ().wild_match_p ())
else
{
found_sym = true;
- add_defn_to_vec (result,
- fixup_symbol_section (sym, objfile),
- block);
+ add_defn_to_vec (result, sym, block);
}
}
}
They aren't parameters, right? */
if (!found_sym && arg_sym != NULL)
{
- add_defn_to_vec (result,
- fixup_symbol_section (arg_sym, objfile),
- block);
+ add_defn_to_vec (result, arg_sym, block);
}
}
}
{
sym = block_linkage_function (b);
if (sym != NULL)
- {
- fixup_symbol_section (sym, sal->symtab->compunit ()->objfile ());
- sal->section
- = sym->obj_section (sal->symtab->compunit ()->objfile ());
- }
+ sal->section
+ = sym->obj_section (sal->symtab->compunit ()->objfile ());
else
{
/* It really is worthwhile to have the section, so we'll
{
struct obj_section *section;
- fixup_symbol_section (sfn, 0);
section = sfn->obj_section (sfn->objfile ());
if (section_is_overlay (section)
&& !section_is_mapped (section))
relocate_one_symbol (struct symbol *sym, struct objfile *objfile,
const section_offsets &delta)
{
- fixup_symbol_section (sym, objfile);
-
/* The RS6000 code from which this was taken skipped
any symbols in STRUCT_DOMAIN or UNDEF_DOMAIN.
But I'm leaving out that test, on the theory that
{
symbol_lookup_debug_printf_v ("lookup_symbol_in_block (...) = %s",
host_address_to_string (sym));
- return fixup_symbol_section (sym, NULL);
+ return sym;
}
symbol_lookup_debug_printf_v ("lookup_symbol_in_block (...) = NULL");
("lookup_symbol_in_objfile_symtabs (...) = %s (block %s)",
host_address_to_string (other.symbol),
host_address_to_string (other.block));
- other.symbol = fixup_symbol_section (other.symbol, objfile);
return other;
}
host_address_to_string (result.symbol),
host_address_to_string (block));
- result.symbol = fixup_symbol_section (result.symbol, objfile);
result.block = block;
return result;
}
const struct block *b = bv->block (b_index);
ALL_BLOCK_SYMBOLS (b, iter, sym)
{
- fixup_symbol_section (sym, obj_file);
if (matching_obj_sections (sym->obj_section (obj_file),
section))
break;
symtab_and_line
find_function_start_sal (symbol *sym, bool funfirstline)
{
- fixup_symbol_section (sym, NULL);
symtab_and_line sal
= find_function_start_sal_1 (sym->value_block ()->entry_pc (),
sym->obj_section (sym->objfile ()),
sym = find_pc_sect_function (sal->pc, sal->section);
if (sym != NULL)
{
- fixup_symbol_section (sym, NULL);
-
objfile = sym->objfile ();
pc = sym->value_block ()->entry_pc ();
section = sym->obj_section (objfile);