From c256e171654791e456088ccb4c83d183650d8940 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Wed, 25 Sep 2013 22:48:19 +0000 Subject: * 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. --- gdb/xcoffread.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gdb/xcoffread.c') diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 17c45b96bae..7f34ac92293 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -3104,8 +3104,6 @@ static const struct sym_fns xcoff_sym_fns = xcoffread.c reads all the symbols and does in fact randomly access them (in C_BSTAT and line number processing). */ - bfd_target_xcoff_flavour, - xcoff_new_init, /* init anything gbl to entire symtab */ xcoff_symfile_init, /* read initial info, setup for sym_read() */ xcoff_initial_scan, /* read a symbol file into symtab */ @@ -3194,7 +3192,7 @@ extern initialize_file_ftype _initialize_xcoffread; void _initialize_xcoffread (void) { - add_symtab_fns (&xcoff_sym_fns); + add_symtab_fns (bfd_target_xcoff_flavour, &xcoff_sym_fns); xcoff_objfile_data_key = register_objfile_data_with_cleanup (NULL, xcoff_free_info); -- cgit v1.2.1