From e81bad50a8605ae3c02521e6b7bf59c88aa1ecda Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 16 Dec 1998 14:57:08 +0000 Subject: [PATCH] * gdbtypes.c (build_gdbtypes): New function. (_initialize_gdbtypes): Call. --- gdb/ChangeLog | 5 +++++ gdb/gdbtypes.c | 16 ++++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3aafee0680e..0f55ca45e70 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Thu Dec 17 01:34:36 1998 Andrew Cagney + + * gdbtypes.c (build_gdbtypes): New function. + (_initialize_gdbtypes): Call. + Wed Dec 16 11:47:00 1998 Andrew Cagney * gdbarch.c (show_architecture): Use TARGET_ARCHITECTURE. diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c index 6601d9dcdf4..2bc4003e3cc 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 (); +} -- 2.30.2