aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2006-12-06 00:57:04 +0000
committerJim Blandy <jimb@codesourcery.com>2006-12-06 00:57:04 +0000
commit8f2e9323f0b754011d0fa089bac65c9d28b73483 (patch)
tree2528705af49562efe0dfcd551006aaf5b2b64ba4 /gdb
parent91da9340ccc0b222d729c9f775b2d4ec1480ee75 (diff)
downloadgdb-8f2e9323f0b754011d0fa089bac65c9d28b73483.zip
gdb-8f2e9323f0b754011d0fa089bac65c9d28b73483.tar.gz
gdb-8f2e9323f0b754011d0fa089bac65c9d28b73483.tar.bz2
* gdbtypes.c (built_gdbtypes): Don't set builtin_type_void here.
(_initialize_gdbtypes): Do it here, and don't swap it when the architecture changes.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/gdbtypes.c9
2 files changed, 10 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 131611b..f0a6438 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2006-12-05 Jim Blandy <jimb@codesourcery.com>
+
+ * gdbtypes.c (built_gdbtypes): Don't set builtin_type_void here.
+ (_initialize_gdbtypes): Do it here, and don't swap it when the
+ architecture changes.
+
2006-12-05 Daniel Jacobowitz <dan@codesourcery.com>
* cp-valprint.c, p-valprint.c: Revert last change.
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 4c9f047..3ce38ff 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -3297,10 +3297,6 @@ copy_type_recursive (struct objfile *objfile, struct type *type,
static void
build_gdbtypes (void)
{
- builtin_type_void =
- init_type (TYPE_CODE_VOID, 1,
- 0,
- "void", (struct objfile *) NULL);
builtin_type_char =
init_type (TYPE_CODE_INT, TARGET_CHAR_BIT / TARGET_CHAR_BIT,
(TYPE_FLAG_NOSIGN
@@ -3650,6 +3646,10 @@ _initialize_gdbtypes (void)
{
struct cmd_list_element *c;
+ builtin_type_void =
+ init_type (TYPE_CODE_VOID, 1,
+ 0,
+ "void", (struct objfile *) NULL);
builtin_type_int0 =
init_type (TYPE_CODE_INT, 0 / 8,
0,
@@ -3702,7 +3702,6 @@ _initialize_gdbtypes (void)
/* FIXME - For the moment, handle types by swapping them in and out.
Should be using the per-architecture data-pointer and a large
struct. */
- DEPRECATED_REGISTER_GDBARCH_SWAP (builtin_type_void);
DEPRECATED_REGISTER_GDBARCH_SWAP (builtin_type_char);
DEPRECATED_REGISTER_GDBARCH_SWAP (builtin_type_short);
DEPRECATED_REGISTER_GDBARCH_SWAP (builtin_type_int);