diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-04-26 20:08:19 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-04-26 20:08:19 +0000 |
commit | f5f8a0099eaa5d5a75a801d5c4357024b1550d2f (patch) | |
tree | f01ae119e77af5a39f2a728c8f5df404c95fb792 /gdb/gdbtypes.c | |
parent | e54fdaa5c98411e1874ba00e0b2d08815148ac06 (diff) | |
download | ppe42-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.c | 7 |
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); |