summaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-07 23:51:03 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-07 23:51:03 +0000
commit046245839052222161e5cb1233a0f4ca55cfffba (patch)
tree5f03d8e8715954687d0c45b965b47cf1e4e01595 /gdb/value.h
parent55bc2f369cdb7533c18144abed052fce62e66000 (diff)
downloadbinutils-gdb-046245839052222161e5cb1233a0f4ca55cfffba.tar.gz
2005-02-07 Andrew Cagney <cagney@gnu.org>
* value.h (deprecated_set_value_type): Declare. * value.c (deprecated_set_value_type): Define. * hpacc-abi.c, gnu-v2-abi.c, cp-valprint.c: Update. * c-valprint.c, jv-lang.c, objc-lang.c, ada-lang.c: Update. * infcall.c, printcmd.c, valops.c, eval.c, p-exp.y: Update. * ax-gdb.c, tracepoint.c: Update.
Diffstat (limited to 'gdb/value.h')
-rw-r--r--gdb/value.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/value.h b/gdb/value.h
index 3905b1af078..762f1f2a3b8 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -80,7 +80,11 @@ struct value
struct frame_id frame_id;
/* Type of the value. */
+#ifdef VALUE_C
struct type *type;
+#else
+ struct type *xtype;
+#endif
/* If a value represents a C++ object, then the `type' field gives
the object's compile-time type. If the object actually belongs
@@ -174,6 +178,11 @@ struct value
extern struct type *value_type (struct value *);
+/* This is being used to change the type of an existing value, that
+ code should instead be creating a new value with the changed type
+ (but possibly shared content). */
+extern void deprecated_set_value_type (struct value *value,
+ struct type *type);
extern int value_bitsize (struct value *);
extern int value_bitpos (struct value *);
extern int value_offset (struct value *);