summaryrefslogtreecommitdiff
path: root/gdb/machoread.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-09-25 22:48:18 +0000
committerDoug Evans <dje@google.com>2013-09-25 22:48:18 +0000
commit6a9c1b31834f69fc2c13cd61c5570dbc6819f970 (patch)
treeb467ef707baad0c9f11fd05454956d11659f783d /gdb/machoread.c
parent7e414f30983310e8dfd126e9ab2a3529ffd4075a (diff)
downloadgdb-6a9c1b31834f69fc2c13cd61c5570dbc6819f970.tar.gz
* 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/machoread.c')
-rw-r--r--gdb/machoread.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/machoread.c b/gdb/machoread.c
index 78af2f6e583..69a234cddf8 100644
--- a/gdb/machoread.c
+++ b/gdb/machoread.c
@@ -1029,8 +1029,6 @@ macho_symfile_offsets (struct objfile *objfile,
}
static const struct sym_fns macho_sym_fns = {
- bfd_target_mach_o_flavour,
-
macho_new_init, /* init anything gbl to entire symtab */
macho_symfile_init, /* read initial info, setup for sym_read() */
macho_symfile_read, /* read a symbol file into symtab */
@@ -1050,7 +1048,7 @@ extern initialize_file_ftype _initialize_machoread;
void
_initialize_machoread (void)
{
- add_symtab_fns (&macho_sym_fns);
+ add_symtab_fns (bfd_target_mach_o_flavour, &macho_sym_fns);
add_setshow_zuinteger_cmd ("mach-o", class_obscure,
&mach_o_debug_level,