aboutsummaryrefslogtreecommitdiff
path: root/gdb/guile
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/guile
parentbbe912ba8898f5440028a35d0a206d70a6877ed6 (diff)
downloadgdb-78259c365fb3c8e4fba9c19020fb8bdd8546c9f9.zip
gdb-78259c365fb3c8e4fba9c19020fb8bdd8546c9f9.tar.gz
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/guile')
-rw-r--r--gdb/guile/scm-pretty-print.c2
-rw-r--r--gdb/guile/scm-value.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/guile/scm-pretty-print.c b/gdb/guile/scm-pretty-print.c
index 7a680c0..ca44133 100644
--- a/gdb/guile/scm-pretty-print.c
+++ b/gdb/guile/scm-pretty-print.c
@@ -966,7 +966,7 @@ gdbscm_apply_val_pretty_printer (const struct extension_language_defn *extlang,
enum guile_string_repr_result print_result;
if (value->lazy ())
- value_fetch_lazy (value);
+ value->fetch_lazy ();
/* No pretty-printer support for unavailable values. */
if (!value_bytes_available (value, 0, type->length ()))
diff --git a/gdb/guile/scm-value.c b/gdb/guile/scm-value.c
index 8f292c2..195fd3b 100644
--- a/gdb/guile/scm-value.c
+++ b/gdb/guile/scm-value.c
@@ -1248,7 +1248,7 @@ gdbscm_value_fetch_lazy_x (SCM self)
return gdbscm_wrap ([=]
{
if (value->lazy ())
- value_fetch_lazy (value);
+ value->fetch_lazy ();
return SCM_UNSPECIFIED;
});
}