aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbtypes.h
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.h
parente54fdaa5c98411e1874ba00e0b2d08815148ac06 (diff)
downloadgdb-f5f8a0099eaa5d5a75a801d5c4357024b1550d2f.zip
gdb-f5f8a0099eaa5d5a75a801d5c4357024b1550d2f.tar.gz
gdb-f5f8a0099eaa5d5a75a801d5c4357024b1550d2f.tar.bz2
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.h')
-rw-r--r--gdb/gdbtypes.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index f4a2cf6..0411aaa 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -248,6 +248,13 @@ enum type_code
#define TYPE_FLAG_VARARGS (1 << 11)
#define TYPE_VARARGS(t) ((t)->flags & TYPE_FLAG_VARARGS)
+/* Identify a vector type. Gcc is handling this by adding an extra
+ attribute to the array type. We slurp that in as a new flag of a
+ type. This is used only in dwarf2read.c. */
+#define TYPE_FLAG_VECTOR (1 << 12)
+#define TYPE_VECTOR(t) ((t)->flags & TYPE_FLAG_VECTOR)
+
+
struct type
{