summaryrefslogtreecommitdiffstats
path: root/gdb/gdbtypes.c
diff options
context:
space:
mode:
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-04-26 20:08:19 +0000
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>2002-04-26 20:08:19 +0000
commitf5f8a0099eaa5d5a75a801d5c4357024b1550d2f (patch)
treef01ae119e77af5a39f2a728c8f5df404c95fb792 /gdb/gdbtypes.c
parente54fdaa5c98411e1874ba00e0b2d08815148ac06 (diff)
downloadppe42-binutils-f5f8a0099eaa5d5a75a801d5c4357024b1550d2f.tar.gz
ppe42-binutils-f5f8a0099eaa5d5a75a801d5c4357024b1550d2f.zip
2002-04-24 Elena Zannoni <ezannoni@redhat.com>
* gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define. * gdbtypes.c (recursive_dump_type): Output the vector flag. * dwarf2read.c (dwarf_attr_name): Handle new attribute for vectors. (read_array_type): Record the fact that this array type is really a vector (i.e. are passed in by value).
Diffstat (limited to 'gdb/gdbtypes.c')
-rw-r--r--gdb/gdbtypes.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index bad0ad8279..fa01f36c50 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -3031,6 +3031,13 @@ recursive_dump_type (struct type *type, int spaces)
{
puts_filtered (" TYPE_FLAG_VARARGS");
}
+ /* This is used for things like AltiVec registers on ppc. Gcc emits
+ an attribute for the array type, which tells whether or not we
+ have a vector, instead of a regular array. */
+ if (TYPE_VECTOR (type))
+ {
+ puts_filtered (" TYPE_FLAG_VECTOR");
+ }
puts_filtered ("\n");
printfi_filtered (spaces, "nfields %d ", TYPE_NFIELDS (type));
gdb_print_host_address (TYPE_FIELDS (type), gdb_stdout);
OpenPOWER on IntegriCloud