Remove register_gdbarch_init

This removes the deprecated register_gdbarch_init in favor a default
argument to gdbarch_register.  Regression tested on x86-64 Fedora 34.
This commit is contained in:
Tom Tromey
2022-07-31 10:44:01 -06:00
parent 45d92439ae
commit ec29a63c80
29 changed files with 32 additions and 43 deletions

View File

@@ -374,7 +374,7 @@ void _initialize_bpf_tdep ();
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,