aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-lang.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/rust-lang.c
parentbbe912ba8898f5440028a35d0a206d70a6877ed6 (diff)
downloadfsf-binutils-gdb-78259c365fb3c8e4fba9c19020fb8bdd8546c9f9.zip
fsf-binutils-gdb-78259c365fb3c8e4fba9c19020fb8bdd8546c9f9.tar.gz
fsf-binutils-gdb-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/rust-lang.c')
-rw-r--r--gdb/rust-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c
index ff30bab..cca2baa 100644
--- a/gdb/rust-lang.c
+++ b/gdb/rust-lang.c
@@ -352,7 +352,7 @@ rust_val_print_slice (struct value *val, struct ui_file *stream, int recurse,
struct value *array = value::allocate_lazy (array_type);
VALUE_LVAL (array) = lval_memory;
array->set_address (value_as_address (base));
- value_fetch_lazy (array);
+ array->fetch_lazy ();
generic_value_print (array, stream, recurse, options,
&rust_decorations);
}