summaryrefslogtreecommitdiff
path: root/gdb/gdbarch.h
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/gdbarch.h
parent45d92439aebd0386ef8af76e1796d08cfe457e1d (diff)
downloadbinutils-gdb-ec29a63c80602056bfc8533d230394d0db14b982.tar.gz
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/gdbarch.h')
-rw-r--r--gdb/gdbarch.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index 2c431a34735..9ac418150b1 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -271,12 +271,9 @@ struct gdbarch_info
typedef struct gdbarch *(gdbarch_init_ftype) (struct gdbarch_info info, struct gdbarch_list *arches);
typedef void (gdbarch_dump_tdep_ftype) (struct gdbarch *gdbarch, struct ui_file *file);
-/* DEPRECATED - use gdbarch_register() */
-extern void register_gdbarch_init (enum bfd_architecture architecture, gdbarch_init_ftype *);
-
extern void gdbarch_register (enum bfd_architecture architecture,
- gdbarch_init_ftype *,
- gdbarch_dump_tdep_ftype *);
+ gdbarch_init_ftype *init,
+ gdbarch_dump_tdep_ftype *dump_tdep = nullptr);
/* Return a vector of the valid architecture names. Since architectures are