aboutsummaryrefslogtreecommitdiff
path: root/gdb/sparc-tdep.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2022-07-31 10:44:01 -0600
committerTom Tromey <tom@tromey.com>2022-08-16 07:29:46 -0600
commitec29a63c80602056bfc8533d230394d0db14b982 (patch)
treee16e0f1a660105aaf314af59dbedf05042917743 /gdb/sparc-tdep.c
parent45d92439aebd0386ef8af76e1796d08cfe457e1d (diff)
downloadgdb-ec29a63c80602056bfc8533d230394d0db14b982.zip
gdb-ec29a63c80602056bfc8533d230394d0db14b982.tar.gz
gdb-ec29a63c80602056bfc8533d230394d0db14b982.tar.bz2
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.
Diffstat (limited to 'gdb/sparc-tdep.c')
-rw-r--r--gdb/sparc-tdep.c2
1 files changed, 1 insertions, 1 deletions
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);
}