diff options
author | Tom Tromey <tom@tromey.com> | 2023-02-09 06:35:33 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:22:20 -0700 |
commit | 6f9c9d71c2420e9bc6825cef59a922f5fb863e1a (patch) | |
tree | d8a12b7cdd7bf1510afbfc13ea7f79449f99fffb /gdb/eval.c | |
parent | 43b5fba22365c6ddd0d60324833f279364b577e7 (diff) | |
download | gdb-6f9c9d71c2420e9bc6825cef59a922f5fb863e1a.zip gdb-6f9c9d71c2420e9bc6825cef59a922f5fb863e1a.tar.gz gdb-6f9c9d71c2420e9bc6825cef59a922f5fb863e1a.tar.bz2 |
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>
Diffstat (limited to 'gdb/eval.c')
-rw-r--r-- | gdb/eval.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2879,7 +2879,7 @@ var_msym_value_operation::evaluate_for_cast (struct type *to_type, { if (val->lazy ()) val->fetch_lazy (); - VALUE_LVAL (val) = not_lval; + val->set_lval (not_lval); } return val; } @@ -2900,7 +2900,7 @@ var_value_operation::evaluate_for_cast (struct type *to_type, { if (val->lazy ()) val->fetch_lazy (); - VALUE_LVAL (val) = not_lval; + val->set_lval (not_lval); } return val; } |