aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2001-06-06 17:47:28 +0000
committerJim Blandy <jimb@codesourcery.com>2001-06-06 17:47:28 +0000
commitceaa8edf7ecefadd717ec69f2b5821bca2f339c4 (patch)
tree4a41577dcb0101c0473c5612586484efcbd91be4 /gdb/gdbarch.c
parent6da13e9a21eb80d2544f19520abdc49a70478fa4 (diff)
downloadgdb-ceaa8edf7ecefadd717ec69f2b5821bca2f339c4.zip
gdb-ceaa8edf7ecefadd717ec69f2b5821bca2f339c4.tar.gz
gdb-ceaa8edf7ecefadd717ec69f2b5821bca2f339c4.tar.bz2
* gdbarch.sh: Changes to effect the following:
* gdbarch.c (initialize_non_multiarch): New function. * gdbarch.h (initialize_non_multiarch): New declaration. * arch-utils.c (initialize_current_architecture): For non-multiarch configurations, call initialize_non_multiarch.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r--gdb/gdbarch.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index 2bd957f..95e9044 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -387,6 +387,15 @@ struct gdbarch startup_gdbarch =
struct gdbarch *current_gdbarch = &startup_gdbarch;
+/* Do any initialization needed for a non-multiarch configuration
+ after the _initialize_MODULE functions have been run. */
+void
+initialize_non_multiarch ()
+{
+ alloc_gdbarch_data (&startup_gdbarch);
+ init_gdbarch_data (&startup_gdbarch);
+}
+
/* Create a new ``struct gdbarch'' based on information provided by
``struct gdbarch_info''. */