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/arch-utils.c | |
parent | 45d92439aebd0386ef8af76e1796d08cfe457e1d (diff) | |
download | gdb-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/arch-utils.c')
-rw-r--r-- | gdb/arch-utils.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index 9c6b926..9bd4f0d 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -1277,7 +1277,7 @@ gdbarch_register (enum bfd_architecture bfd_architecture, } /* 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 */ @@ -1289,14 +1289,6 @@ gdbarch_register (enum bfd_architecture bfd_architecture, (*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 * |