diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 13:53:55 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:22:04 -0700 |
commit | 78259c365fb3c8e4fba9c19020fb8bdd8546c9f9 (patch) | |
tree | a9ed03e77f218d92e18fddf68a7f4ba8581f1af9 /gdb/eval.c | |
parent | bbe912ba8898f5440028a35d0a206d70a6877ed6 (diff) | |
download | binutils-78259c365fb3c8e4fba9c19020fb8bdd8546c9f9.zip binutils-78259c365fb3c8e4fba9c19020fb8bdd8546c9f9.tar.gz binutils-78259c365fb3c8e4fba9c19020fb8bdd8546c9f9.tar.bz2 |
Turn value_fetch_lazy into a method
This changes value_fetch_lazy to be a method of value. A few helper
functions are converted as well, to avoid problems in later patches
when the data members are all made private.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/eval.c')
-rw-r--r-- | gdb/eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -212,7 +212,7 @@ fetch_subexp_value (struct expression *exp, try { - value_fetch_lazy (result); + result->fetch_lazy (); *valp = result; } catch (const gdb_exception_error &except) @@ -2878,7 +2878,7 @@ var_msym_value_operation::evaluate_for_cast (struct type *to_type, if (VALUE_LVAL (val) == lval_memory) { if (val->lazy ()) - value_fetch_lazy (val); + val->fetch_lazy (); VALUE_LVAL (val) = not_lval; } return val; @@ -2899,7 +2899,7 @@ var_value_operation::evaluate_for_cast (struct type *to_type, if (VALUE_LVAL (val) == lval_memory) { if (val->lazy ()) - value_fetch_lazy (val); + val->fetch_lazy (); VALUE_LVAL (val) = not_lval; } return val; |