From ec29a63c80602056bfc8533d230394d0db14b982 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 31 Jul 2022 10:44:01 -0600 Subject: 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. --- gdb/sparc-tdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/sparc-tdep.c') diff --git a/gdb/sparc-tdep.c b/gdb/sparc-tdep.c index 397f548..0f5da2c 100644 --- a/gdb/sparc-tdep.c +++ b/gdb/sparc-tdep.c @@ -2269,5 +2269,5 @@ void _initialize_sparc_tdep (); void _initialize_sparc_tdep () { - register_gdbarch_init (bfd_arch_sparc, sparc32_gdbarch_init); + gdbarch_register (bfd_arch_sparc, sparc32_gdbarch_init); } -- cgit v1.1