aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-cmd-stack.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 16:13:08 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:22:17 -0700
commitd00664dbba2802bacfed2335b6f249fc418182a0 (patch)
treed926f7656d767617427844def6d80e8e72817207 /gdb/mi/mi-cmd-stack.c
parentcda0334434412d888443e9a98386255f2e0c2eab (diff)
downloadgdb-d00664dbba2802bacfed2335b6f249fc418182a0.zip
gdb-d00664dbba2802bacfed2335b6f249fc418182a0.tar.gz
gdb-d00664dbba2802bacfed2335b6f249fc418182a0.tar.bz2
Turn many optimized-out value functions into methods
This turns many functions that are related to optimized-out or availability-checking to be methods of value. The static function value_entirely_covered_by_range_vector is also converted to be a private method. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/mi/mi-cmd-stack.c')
-rw-r--r--gdb/mi/mi-cmd-stack.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c
index abe0d34..1554f95 100644
--- a/gdb/mi/mi-cmd-stack.c
+++ b/gdb/mi/mi-cmd-stack.c
@@ -501,14 +501,13 @@ list_arg_or_local (const struct frame_arg *arg, enum what_to_list what,
&& (arg->val || arg->error)));
if (skip_unavailable && arg->val != NULL
- && (value_entirely_unavailable (arg->val)
+ && (arg->val->entirely_unavailable ()
/* A scalar object that does not have all bits available is
also considered unavailable, because all bits contribute
to its representation. */
|| (val_print_scalar_type_p (arg->val->type ())
- && !value_bytes_available (arg->val,
- arg->val->embedded_offset (),
- arg->val->type ()->length ()))))
+ && !arg->val->bytes_available (arg->val->embedded_offset (),
+ arg->val->type ()->length ()))))
return;
gdb::optional<ui_out_emit_tuple> tuple_emitter;