aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-05-08 22:58:39 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-05-08 22:58:39 +0000
commit6599f021bb4c2854ff9e321d8e0b81d8981d2832 (patch)
tree9e490c7d7b5d334a7663c84da1a07603412054f4
parentfedfc8e66549465f4b03bf484b84f7547c96a6ee (diff)
downloadgdb-6599f021bb4c2854ff9e321d8e0b81d8981d2832.zip
gdb-6599f021bb4c2854ff9e321d8e0b81d8981d2832.tar.gz
gdb-6599f021bb4c2854ff9e321d8e0b81d8981d2832.tar.bz2
2002-05-08 Elena Zannoni <ezannoni@redhat.com>
* gdbtypes.c : Add new builtin type for 64 bit vectors. (build_gdbtypes): Build builtin_type_v2_float. (_initialize_gdbtypes): Register new builtin type.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/gdbtypes.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8e07470..c179641c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2002-05-08 Elena Zannoni <ezannoni@redhat.com>
+
+ * gdbtypes.c : Add new builtin type for 64 bit vectors.
+ (build_gdbtypes): Build builtin_type_v2_float.
+ (_initialize_gdbtypes): Register new builtin type.
+
2002-05-08 Andrew Cagney <ac131313@redhat.com>
* gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index ccff12f..1b3b1b9 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -78,6 +78,7 @@ struct type *builtin_type_v4_int32;
struct type *builtin_type_v8_int16;
struct type *builtin_type_v16_int8;
/* 64 bit long vector types */
+struct type *builtin_type_v2_float;
struct type *builtin_type_v2_int32;
struct type *builtin_type_v4_int16;
struct type *builtin_type_v8_int8;
@@ -3317,6 +3318,7 @@ build_gdbtypes (void)
builtin_type_v8_int16 = init_vector_type (builtin_type_int16, 8);
builtin_type_v16_int8 = init_vector_type (builtin_type_int8, 16);
/* 64 bit vectors. */
+ builtin_type_v2_float = init_vector_type (builtin_type_float, 2);
builtin_type_v2_int32 = init_vector_type (builtin_type_int32, 2);
builtin_type_v4_int16 = init_vector_type (builtin_type_int16, 4);
builtin_type_v8_int8 = init_vector_type (builtin_type_int8, 8);
@@ -3415,6 +3417,7 @@ _initialize_gdbtypes (void)
register_gdbarch_swap (&builtin_type_v4_int32, sizeof (struct type *), NULL);
register_gdbarch_swap (&builtin_type_v8_int16, sizeof (struct type *), NULL);
register_gdbarch_swap (&builtin_type_v16_int8, sizeof (struct type *), NULL);
+ register_gdbarch_swap (&builtin_type_v2_float, sizeof (struct type *), NULL);
register_gdbarch_swap (&builtin_type_v2_int32, sizeof (struct type *), NULL);
register_gdbarch_swap (&builtin_type_v8_int8, sizeof (struct type *), NULL);
register_gdbarch_swap (&builtin_type_v4_int16, sizeof (struct type *), NULL);