mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
* symfile.h (struct sym_fns) <next>: Remove.
(add_symtab_fns): Update. * symfile.c (sym_fns_ptr): New typedef. (symtab_fns): Now a VEC. (add_symtab_fns): Update. Change argument type. (find_sym_fns): Update. Change return type. (get_symfile_segment_data): Update. * objfiles.h (struct objfile) <sf>: Now const. * somread.c (som_sym_fns): Now const. Update. * xcoffread.c (xcoff_sym_fns): Now const. Update. * mipsread.c (ecoff_sym_fns): Now const. Update. * machoread.c (macho_sym_fns): Now const. Update. * elfread.c (elf_sym_fns): Now const. Update. (elf_sym_fns_gdb_index): Likewise. * dbxread.c (aout_sym_fns): Now const. Update. * coffread.c (coff_sym_fns): Now const. Update.
This commit is contained in:
@ -2126,7 +2126,7 @@ coff_read_enum_type (int index, int length, int lastsym,
|
||||
|
||||
/* Register our ability to parse symbols for coff BFD files. */
|
||||
|
||||
static struct sym_fns coff_sym_fns =
|
||||
static const struct sym_fns coff_sym_fns =
|
||||
{
|
||||
bfd_target_coff_flavour,
|
||||
coff_new_init, /* sym_new_init: init anything gbl to entire symtab */
|
||||
@ -2138,8 +2138,7 @@ static struct sym_fns coff_sym_fns =
|
||||
a file. */
|
||||
NULL, /* sym_read_linetable */
|
||||
default_symfile_relocate, /* sym_relocate: Relocate a debug section. */
|
||||
&psym_functions,
|
||||
NULL /* next: pointer to next struct sym_fns */
|
||||
&psym_functions
|
||||
};
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user