summaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-09-25 22:48:19 +0000
committerDoug Evans <dje@google.com>2013-09-25 22:48:19 +0000
commitc256e171654791e456088ccb4c83d183650d8940 (patch)
treef71a1f5875963eb8eff25aefb51e2fcb454128c4 /gdb/symfile.h
parentf56ce88372c4b5848638bab8b10b71042725a100 (diff)
* 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.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r--gdb/symfile.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h
index 11cb3719b9..8e5909bd8b 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. */