* 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
|
@ -534,7 +534,6 @@ som_symfile_offsets (struct objfile *objfile,
|
|||
|
||||
static const struct sym_fns som_sym_fns =
|
||||
{
|
||||
bfd_target_som_flavour,
|
||||
som_new_init, /* init anything gbl to entire symtab */
|
||||
som_symfile_init, /* read initial info, setup for sym_read() */
|
||||
som_symfile_read, /* read a symbol file into symtab */
|
||||
|
@ -553,5 +552,5 @@ initialize_file_ftype _initialize_somread;
|
|||
void
|
||||
_initialize_somread (void)
|
||||
{
|
||||
add_symtab_fns (&som_sym_fns);
|
||||
add_symtab_fns (bfd_target_som_flavour, &som_sym_fns);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue