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/symfile.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'gdb/symfile.h') diff --git a/gdb/symfile.h b/gdb/symfile.h index 11cb371..8e5909b 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h @@ -350,12 +350,6 @@ struct sym_probe_fns struct sym_fns { - - /* BFD flavour that we handle, or (as a special kludge, see - xcoffread.c, (enum bfd_flavour)-1 for xcoff). */ - - enum bfd_flavour sym_flavour; - /* Initializes anything that is global to the entire symbol table. It is called during symbol_file_add, when we begin debugging an entirely new program. */ @@ -454,7 +448,7 @@ extern bfd_byte *default_symfile_relocate (struct objfile *objfile, extern struct symtab *allocate_symtab (const char *, struct objfile *) ATTRIBUTE_NONNULL (1); -extern void add_symtab_fns (const struct sym_fns *); +extern void add_symtab_fns (enum bfd_flavour flavour, const struct sym_fns *); /* This enum encodes bit-flags passed as ADD_FLAGS parameter to symbol_file_add, etc. */ -- cgit v1.1