}
/* log it */
if (gdbarch_debug)
- gdb_printf (gdb_stdlog, "register_gdbarch_init (%s, %s)\n",
+ gdb_printf (gdb_stdlog, "gdbarch_register (%s, %s)\n",
bfd_arch_info->printable_name,
host_address_to_string (init));
/* Append it */
(*curr)->next = NULL;
}
-void
-register_gdbarch_init (enum bfd_architecture bfd_architecture,
- gdbarch_init_ftype *init)
-{
- gdbarch_register (bfd_architecture, init, NULL);
-}
-
-
/* Look for an architecture using gdbarch_info. */
struct gdbarch_list *
void
_initialize_avr_tdep ()
{
- register_gdbarch_init (bfd_arch_avr, avr_gdbarch_init);
+ gdbarch_register (bfd_arch_avr, avr_gdbarch_init);
/* Add a new command to allow the user to query the avr remote target for
the values of the io space registers in a saner way than just using
void
_initialize_bfin_tdep ()
{
- register_gdbarch_init (bfd_arch_bfin, bfin_gdbarch_init);
+ gdbarch_register (bfd_arch_bfin, bfin_gdbarch_init);
}
void
_initialize_bpf_tdep ()
{
- register_gdbarch_init (bfd_arch_bpf, bpf_gdbarch_init);
+ gdbarch_register (bfd_arch_bpf, bpf_gdbarch_init);
/* Add commands 'set/show debug bpf'. */
add_setshow_zuinteger_cmd ("bpf", class_maintenance,
_initialize_csky_tdep ()
{
- register_gdbarch_init (bfd_arch_csky, csky_gdbarch_init);
+ gdbarch_register (bfd_arch_csky, csky_gdbarch_init);
csky_init_reggroup ();
void
_initialize_frv_tdep ()
{
- register_gdbarch_init (bfd_arch_frv, frv_gdbarch_init);
+ gdbarch_register (bfd_arch_frv, frv_gdbarch_init);
}
void
_initialize_ft32_tdep ()
{
- register_gdbarch_init (bfd_arch_ft32, ft32_gdbarch_init);
+ gdbarch_register (bfd_arch_ft32, ft32_gdbarch_init);
}
typedef struct gdbarch *(gdbarch_init_ftype) (struct gdbarch_info info, struct gdbarch_list *arches);
typedef void (gdbarch_dump_tdep_ftype) (struct gdbarch *gdbarch, struct ui_file *file);
-/* DEPRECATED - use gdbarch_register() */
-extern void register_gdbarch_init (enum bfd_architecture architecture, gdbarch_init_ftype *);
-
extern void gdbarch_register (enum bfd_architecture architecture,
- gdbarch_init_ftype *,
- gdbarch_dump_tdep_ftype *);
+ gdbarch_init_ftype *init,
+ gdbarch_dump_tdep_ftype *dump_tdep = nullptr);
/* Return a vector of the valid architecture names. Since architectures are
void
_initialize_h8300_tdep ()
{
- register_gdbarch_init (bfd_arch_h8300, h8300_gdbarch_init);
+ gdbarch_register (bfd_arch_h8300, h8300_gdbarch_init);
}
static int
void
_initialize_i386_tdep ()
{
- register_gdbarch_init (bfd_arch_i386, i386_gdbarch_init);
+ gdbarch_register (bfd_arch_i386, i386_gdbarch_init);
/* Add the variable that controls the disassembly flavor. */
add_setshow_enum_cmd ("disassembly-flavor", no_class, valid_flavors,
void
_initialize_iq2000_tdep ()
{
- register_gdbarch_init (bfd_arch_iq2000, iq2000_gdbarch_init);
+ gdbarch_register (bfd_arch_iq2000, iq2000_gdbarch_init);
}
void
_initialize_lm32_tdep ()
{
- register_gdbarch_init (bfd_arch_lm32, lm32_gdbarch_init);
+ gdbarch_register (bfd_arch_lm32, lm32_gdbarch_init);
}
void
_initialize_m32c_tdep ()
{
- register_gdbarch_init (bfd_arch_m32c, m32c_gdbarch_init);
+ gdbarch_register (bfd_arch_m32c, m32c_gdbarch_init);
m32c_dma_reggroup = reggroup_new ("dma", USER_REGGROUP);
}
void
_initialize_m32r_tdep ()
{
- register_gdbarch_init (bfd_arch_m32r, m32r_gdbarch_init);
+ gdbarch_register (bfd_arch_m32r, m32r_gdbarch_init);
}
void
_initialize_m68hc11_tdep ()
{
- register_gdbarch_init (bfd_arch_m68hc11, m68hc11_gdbarch_init);
- register_gdbarch_init (bfd_arch_m68hc12, m68hc11_gdbarch_init);
+ gdbarch_register (bfd_arch_m68hc11, m68hc11_gdbarch_init);
+ gdbarch_register (bfd_arch_m68hc12, m68hc11_gdbarch_init);
m68hc11_init_reggroups ();
}
mep_cr_reggroup = reggroup_new ("cr", USER_REGGROUP);
mep_ccr_reggroup = reggroup_new ("ccr", USER_REGGROUP);
- register_gdbarch_init (bfd_arch_mep, mep_gdbarch_init);
+ gdbarch_register (bfd_arch_mep, mep_gdbarch_init);
mep_init_pseudoregister_maps ();
}
void
_initialize_microblaze_tdep ()
{
- register_gdbarch_init (bfd_arch_microblaze, microblaze_gdbarch_init);
+ gdbarch_register (bfd_arch_microblaze, microblaze_gdbarch_init);
initialize_tdesc_microblaze_with_stack_protect ();
initialize_tdesc_microblaze ();
void
_initialize_moxie_tdep ()
{
- register_gdbarch_init (bfd_arch_moxie, moxie_gdbarch_init);
+ gdbarch_register (bfd_arch_moxie, moxie_gdbarch_init);
}
void
_initialize_msp430_tdep ()
{
- register_gdbarch_init (bfd_arch_msp430, msp430_gdbarch_init);
+ gdbarch_register (bfd_arch_msp430, msp430_gdbarch_init);
}
_initialize_nds32_tdep ()
{
/* Initialize gdbarch. */
- register_gdbarch_init (bfd_arch_nds32, nds32_gdbarch_init);
+ gdbarch_register (bfd_arch_nds32, nds32_gdbarch_init);
initialize_tdesc_nds32 ();
nds32_init_reggroups ();
void
_initialize_rl78_tdep ()
{
- register_gdbarch_init (bfd_arch_rl78, rl78_gdbarch_init);
+ gdbarch_register (bfd_arch_rl78, rl78_gdbarch_init);
}
void
_initialize_rx_tdep ()
{
- register_gdbarch_init (bfd_arch_rx, rx_gdbarch_init);
+ gdbarch_register (bfd_arch_rx, rx_gdbarch_init);
initialize_tdesc_rx ();
}
_initialize_s390_tdep ()
{
/* Hook us into the gdbarch mechanism. */
- register_gdbarch_init (bfd_arch_s390, s390_gdbarch_init);
+ gdbarch_register (bfd_arch_s390, s390_gdbarch_init);
initialize_tdesc_s390_linux32 ();
initialize_tdesc_s390x_linux64 ();
void
_initialize_sparc_tdep ()
{
- register_gdbarch_init (bfd_arch_sparc, sparc32_gdbarch_init);
+ gdbarch_register (bfd_arch_sparc, sparc32_gdbarch_init);
}
void
_initialize_tic6x_tdep ()
{
- register_gdbarch_init (bfd_arch_tic6x, tic6x_gdbarch_init);
+ gdbarch_register (bfd_arch_tic6x, tic6x_gdbarch_init);
}
void
_initialize_tilegx_tdep ()
{
- register_gdbarch_init (bfd_arch_tilegx, tilegx_gdbarch_init);
+ gdbarch_register (bfd_arch_tilegx, tilegx_gdbarch_init);
}
void
_initialize_v850_tdep ()
{
- register_gdbarch_init (bfd_arch_v850, v850_gdbarch_init);
- register_gdbarch_init (bfd_arch_v850_rh850, v850_gdbarch_init);
+ gdbarch_register (bfd_arch_v850, v850_gdbarch_init);
+ gdbarch_register (bfd_arch_v850_rh850, v850_gdbarch_init);
}
void
_initialize_xstormy16_tdep ()
{
- register_gdbarch_init (bfd_arch_xstormy16, xstormy16_gdbarch_init);
+ gdbarch_register (bfd_arch_xstormy16, xstormy16_gdbarch_init);
}
void
_initialize_z80_tdep ()
{
- register_gdbarch_init (bfd_arch_z80, z80_gdbarch_init);
+ gdbarch_register (bfd_arch_z80, z80_gdbarch_init);
initialize_tdesc_z80 ();
}