aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.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/valops.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/valops.c')
-rw-r--r--gdb/valops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index 56e4645..de1b1a7 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -521,7 +521,7 @@ value_assign (struct value *toval, struct value *fromval)
struct value *val;
struct frame_id old_frame;
- if (!toval->modifiable)
+ if (!deprecated_value_modifiable (toval))
error ("Left operand of assignment is not a modifiable lvalue.");
toval = coerce_ref (toval);