aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
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.c
parent55bc2f369cdb7533c18144abed052fce62e66000 (diff)
downloadgdb-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.c')
-rw-r--r--gdb/value.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/value.c b/gdb/value.c
index 1a8796e..e338dd2 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -21,6 +21,10 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+/* Hack so that value.h can detect when it's being included by
+ value.c. */
+#define VALUE_C
+
#include "defs.h"
#include "gdb_string.h"
#include "symtab.h"
@@ -128,6 +132,11 @@ value_type (struct value *value)
{
return value->type;
}
+void
+deprecated_set_value_type (struct value *value, struct type *type)
+{
+ value->type = type;
+}
int
value_offset (struct value *value)