mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
Introduce set_lval method on value
This introduces the set_lval method on value, one step toward removing deprecated_lval_hack. Ultimately I think the goal should be for some of these set_* methods to be replaced with constructors; but I haven't done this, as the series is already too long. Other 'deprecated' methods can probably be handled the same way. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@ -4356,7 +4356,7 @@ ensure_lval (struct value *val)
|
||||
const CORE_ADDR addr =
|
||||
value_as_long (value_allocate_space_in_inferior (len));
|
||||
|
||||
VALUE_LVAL (val) = lval_memory;
|
||||
val->set_lval (lval_memory);
|
||||
val->set_address (addr);
|
||||
write_memory (addr, val->contents ().data (), len);
|
||||
}
|
||||
@ -10854,7 +10854,7 @@ ada_var_msym_value_operation::evaluate_for_cast (struct type *expect_type,
|
||||
{
|
||||
if (val->lazy ())
|
||||
val->fetch_lazy ();
|
||||
VALUE_LVAL (val) = not_lval;
|
||||
val->set_lval (not_lval);
|
||||
}
|
||||
return val;
|
||||
}
|
||||
@ -10876,7 +10876,7 @@ ada_var_value_operation::evaluate_for_cast (struct type *expect_type,
|
||||
{
|
||||
if (val->lazy ())
|
||||
val->fetch_lazy ();
|
||||
VALUE_LVAL (val) = not_lval;
|
||||
val->set_lval (not_lval);
|
||||
}
|
||||
return val;
|
||||
}
|
||||
|
Reference in New Issue
Block a user