summaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 13:53:55 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:22:04 -0700
commit78259c365fb3c8e4fba9c19020fb8bdd8546c9f9 (patch)
treea9ed03e77f218d92e18fddf68a7f4ba8581f1af9 /gdb/valops.c
parentbbe912ba8898f5440028a35d0a206d70a6877ed6 (diff)
downloadbinutils-gdb-78259c365fb3c8e4fba9c19020fb8bdd8546c9f9.tar.gz
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/valops.c')
-rw-r--r--gdb/valops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index 99dede85a0d..6896478c0f8 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -992,7 +992,7 @@ get_value_at (struct type *type, CORE_ADDR addr, int lazy)
val = value_from_contents_and_address (type, NULL, addr);
if (!lazy)
- value_fetch_lazy (val);
+ val->fetch_lazy ();
return val;
}