diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-07 23:51:03 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-07 23:51:03 +0000 |
commit | 046245839052222161e5cb1233a0f4ca55cfffba (patch) | |
tree | 5f03d8e8715954687d0c45b965b47cf1e4e01595 /gdb/value.h | |
parent | 55bc2f369cdb7533c18144abed052fce62e66000 (diff) | |
download | gdb-046245839052222161e5cb1233a0f4ca55cfffba.zip gdb-046245839052222161e5cb1233a0f4ca55cfffba.tar.gz gdb-046245839052222161e5cb1233a0f4ca55cfffba.tar.bz2 |
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.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/value.h b/gdb/value.h index 3905b1a..762f1f2 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 *); |