forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -2008,7 +2008,7 @@ ada_value_assign (struct value *toval, struct value *fromval)
|
||||
struct type *type = value_type (toval);
|
||||
int bits = value_bitsize (toval);
|
||||
|
||||
if (!toval->modifiable)
|
||||
if (!deprecated_value_modifiable (toval))
|
||||
error (_("Left operand of assignment is not a modifiable lvalue."));
|
||||
|
||||
toval = coerce_ref (toval);
|
||||
|
||||
Reference in New Issue
Block a user