From 00b5771c2a7b46f918bd7c8dd8ec44b79b1372b8 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 30 Sep 2010 19:14:30 +0000 Subject: * symfile.h (struct sym_fns) : 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) : 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. --- gdb/xcoffread.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gdb/xcoffread.c') diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index aa6d27e..902d48f 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -3028,7 +3028,7 @@ xcoff_symfile_offsets (struct objfile *objfile, struct section_addr_info *addrs) /* Register our ability to parse symbols for xcoff BFD files. */ -static struct sym_fns xcoff_sym_fns = +static const struct sym_fns xcoff_sym_fns = { /* It is possible that coff and xcoff should be merged as @@ -3051,8 +3051,7 @@ static struct sym_fns xcoff_sym_fns = a file. */ aix_process_linenos, /* sym_read_linetable */ default_symfile_relocate, /* sym_relocate: Relocate a debug section. */ - &psym_functions, - NULL /* next: pointer to next struct sym_fns */ + &psym_functions }; /* Provide a prototype to silence -Wmissing-prototypes. */ -- cgit v1.1