diff options
author | Tom Tromey <tom@tromey.com> | 2022-07-31 10:44:01 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2022-08-16 07:29:46 -0600 |
commit | ec29a63c80602056bfc8533d230394d0db14b982 (patch) | |
tree | e16e0f1a660105aaf314af59dbedf05042917743 /gdb/i386-tdep.c | |
parent | 45d92439aebd0386ef8af76e1796d08cfe457e1d (diff) | |
download | fsf-binutils-gdb-ec29a63c80602056bfc8533d230394d0db14b982.zip fsf-binutils-gdb-ec29a63c80602056bfc8533d230394d0db14b982.tar.gz fsf-binutils-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/i386-tdep.c')
-rw-r--r-- | gdb/i386-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index d8e910b..c652fb9 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -9071,7 +9071,7 @@ void _initialize_i386_tdep (); 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, |