* symfile.h (struct sym_fns): Delete member "sym_flavour".
All uses updated. (add_symtab_fns): Update prototype. * symfile.c (sym_fns_ptr): Delete. Replace with ... (registered_sym_fns): ... this. (symtab_fns): Update. (add_symtab_fns): New arg "flavour". All callers updated. (find_sym_fns): Rewrite to use new sym_fns registry.
This commit is contained in:
parent
f56ce88372
commit
c256e17165
10 changed files with 41 additions and 37 deletions
|
@ -1721,7 +1721,6 @@ static const struct sym_probe_fns elf_probe_fns =
|
|||
|
||||
static const struct sym_fns elf_sym_fns =
|
||||
{
|
||||
bfd_target_elf_flavour,
|
||||
elf_new_init, /* init anything gbl to entire symtab */
|
||||
elf_symfile_init, /* read initial info, setup for sym_read() */
|
||||
elf_symfile_read, /* read a symbol file into symtab */
|
||||
|
@ -1740,7 +1739,6 @@ static const struct sym_fns elf_sym_fns =
|
|||
|
||||
static const struct sym_fns elf_sym_fns_lazy_psyms =
|
||||
{
|
||||
bfd_target_elf_flavour,
|
||||
elf_new_init, /* init anything gbl to entire symtab */
|
||||
elf_symfile_init, /* read initial info, setup for sym_read() */
|
||||
elf_symfile_read, /* read a symbol file into symtab */
|
||||
|
@ -1758,7 +1756,6 @@ static const struct sym_fns elf_sym_fns_lazy_psyms =
|
|||
DWARF-specific GNU index rather than psymtab. */
|
||||
static const struct sym_fns elf_sym_fns_gdb_index =
|
||||
{
|
||||
bfd_target_elf_flavour,
|
||||
elf_new_init, /* init anything gbl to entire symab */
|
||||
elf_symfile_init, /* read initial info, setup for sym_red() */
|
||||
elf_symfile_read, /* read a symbol file into symtab */
|
||||
|
@ -1786,7 +1783,7 @@ void
|
|||
_initialize_elfread (void)
|
||||
{
|
||||
probe_key = register_objfile_data_with_cleanup (NULL, probe_key_free);
|
||||
add_symtab_fns (&elf_sym_fns);
|
||||
add_symtab_fns (bfd_target_elf_flavour, &elf_sym_fns);
|
||||
|
||||
elf_objfile_gnu_ifunc_cache_data = register_objfile_data ();
|
||||
gnu_ifunc_fns_p = &elf_gnu_ifunc_fns;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue