aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
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)