aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/gdb/value.c b/gdb/value.c
index e338dd2..13585b5 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -21,10 +21,6 @@
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"
@@ -273,6 +269,17 @@ deprecated_value_regnum_hack (struct value *value)
{
return &value->regnum;
}
+
+int
+deprecated_value_modifiable (struct value *value)
+{
+ return value->modifiable;
+}
+void
+deprecated_set_value_modifiable (struct value *value, int modifiable)
+{
+ value->modifiable = modifiable;
+}
/* Return a mark in the value chain. All values allocated after the
mark is obtained (except for those released) are subject to being freed