diff options
Diffstat (limited to 'gdb/valarith.c')
-rw-r--r-- | gdb/valarith.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c index 8e4c418..427cafd 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c @@ -192,7 +192,7 @@ value_subscript (struct value *array, LONGEST index) { struct value *val = value::allocate (elt_type); val->mark_bytes_unavailable (0, elt_size); - VALUE_LVAL (val) = lval_memory; + val->set_lval (lval_memory); val->set_address (array->address () + elt_size * index); return val; } |