aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>1998-12-16 14:57:08 +0000
committerAndrew Cagney <cagney@redhat.com>1998-12-16 14:57:08 +0000
commite81bad50a8605ae3c02521e6b7bf59c88aa1ecda (patch)
tree4daed20ceb05fe9abcfd28525f9316113e91826b /gdb
parentfd85b79fcf5bf646a6101cd4bb2920bcf9eefd36 (diff)
downloadgdb-e81bad50a8605ae3c02521e6b7bf59c88aa1ecda.zip
gdb-e81bad50a8605ae3c02521e6b7bf59c88aa1ecda.tar.gz
gdb-e81bad50a8605ae3c02521e6b7bf59c88aa1ecda.tar.bz2
* gdbtypes.c (build_gdbtypes): New function.
(_initialize_gdbtypes): Call.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/gdbtypes.c16
2 files changed, 17 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3aafee0..0f55ca4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+Thu Dec 17 01:34:36 1998 Andrew Cagney <cagney@chook>
+
+ * gdbtypes.c (build_gdbtypes): New function.
+ (_initialize_gdbtypes): Call.
+
Wed Dec 16 11:47:00 1998 Andrew Cagney <cagney@chook>
* gdbarch.c (show_architecture): Use TARGET_ARCHITECTURE.
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 6601d9d..2bc4003 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -78,8 +78,6 @@ static void print_arg_types PARAMS ((struct type **, int));
static void dump_fn_fieldlists PARAMS ((struct type *, int));
static void print_cplus_stuff PARAMS ((struct type *, int));
-void _initialize_gdbtypes PARAMS ((void));
-
/* Alloc a new type structure and fill it with some defaults. If
OBJFILE is non-NULL, then allocate the space for the type structure
in that objfile's type_obstack. */
@@ -1876,8 +1874,10 @@ recursive_dump_type (type, spaces)
#endif /* MAINTENANCE_CMDS */
-void
-_initialize_gdbtypes ()
+
+static void build_gdbtypes PARAMS ((void));
+static void
+build_gdbtypes ()
{
builtin_type_void =
init_type (TYPE_CODE_VOID, 1,
@@ -1996,3 +1996,11 @@ _initialize_gdbtypes ()
"uint128_t", (struct objfile *) NULL);
/* end-sanitize-r5900 */
}
+
+
+extern void _initialize_gdbtypes PARAMS ((void));
+void
+_initialize_gdbtypes ()
+{
+ build_gdbtypes ();
+}