aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1999-06-14 18:08:47 +0000
committerJason Molenda <jmolenda@apple.com>1999-06-14 18:08:47 +0000
commit0f71a2f66f83f4c7ac139fa8d33ab882362fe861 (patch)
tree16074aaf8b9c3abda2ddf840b5b307c933298a75 /gdb/gdbtypes.c
parent308b1ffdedc0380e17d84260b0069593eb4f9336 (diff)
downloadfsf-binutils-gdb-0f71a2f66f83f4c7ac139fa8d33ab882362fe861.zip
fsf-binutils-gdb-0f71a2f66f83f4c7ac139fa8d33ab882362fe861.tar.gz
fsf-binutils-gdb-0f71a2f66f83f4c7ac139fa8d33ab882362fe861.tar.bz2
import gdb-1999-06-14 snapshot
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r--gdb/gdbtypes.c31
1 files changed, 31 insertions, 0 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index ca9764b..6440766 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -2897,4 +2897,35 @@ void
_initialize_gdbtypes ()
{
build_gdbtypes ();
+
+ /* FIXME - For the moment, handle types by swapping them in and out.
+ Should be using the per-architecture data-pointer and a large
+ struct. */
+ register_gdbarch_swap (&builtin_type_void, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_char, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_short, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_int, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_long, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_long_long, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_signed_char, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_unsigned_char, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_unsigned_short, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_unsigned_int, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_unsigned_long, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_unsigned_long_long, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_float, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_double, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_long_double, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_complex, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_double_complex, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_string, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_int8, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_uint8, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_int16, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_uint16, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_int32, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_uint32, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_int64, sizeof (struct type*), NULL);
+ register_gdbarch_swap (&builtin_type_uint64, sizeof (struct type*), NULL);
+ register_gdbarch_swap (NULL, 0, build_gdbtypes);
}