aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-08 00:25:31 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-08 00:25:31 +0000
commit88e3b34b7c23b9a1b84abdca190f2ced0e5c4c02 (patch)
treeb4d1c12b3492ae50de2325f06346ea1273c59a17 /gdb/value.h
parent8082c5a8f1fefb503b41756677d2f46d65f8eda5 (diff)
downloadgdb-88e3b34b7c23b9a1b84abdca190f2ced0e5c4c02.zip
gdb-88e3b34b7c23b9a1b84abdca190f2ced0e5c4c02.tar.gz
gdb-88e3b34b7c23b9a1b84abdca190f2ced0e5c4c02.tar.bz2
2005-02-07 Andrew Cagney <cagney@gnu.org>
* value.h (deprecated_set_value_modifiable) (deprecated_value_modifiable): Declare. * value.c (deprecated_set_value_modifiable): Define. (deprecated_value_modifiable): Define. * ada-lang.c, valops.c, breakpoint.c, tracepoint.c: Update.
Diffstat (limited to 'gdb/value.h')
-rw-r--r--gdb/value.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/value.h b/gdb/value.h
index 762f1f2..172e3f9 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -80,11 +80,7 @@ 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
@@ -187,6 +183,13 @@ extern int value_bitsize (struct value *);
extern int value_bitpos (struct value *);
extern int value_offset (struct value *);
+/* The comment from "struct value" reads: ``Is it modifiable? Only
+ relevant if lval != not_lval.''. Shouldn't the value instead be
+ not_lval and be done with it? */
+extern int deprecated_value_modifiable (struct value *value);
+extern void deprecated_set_value_modifiable (struct value *value,
+ int modifiable);
+
extern struct type *value_enclosing_type (struct value *);
extern int value_lazy (struct value *);
extern void set_value_lazy (struct value *value, int val);