aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
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.c
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.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