aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 10:40:38 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:21:07 -0700
commit391f86284f6fff1011ace7136f4bd2bb438de3c6 (patch)
tree7d7ab420625896541ce7cd7c3302aa210325b619 /gdb/mi/mi-cmd-stack.c
parentTurn value_enclosing_type into method (diff)
downloadbinutils-gdb-391f86284f6fff1011ace7136f4bd2bb438de3c6.tar.gz
binutils-gdb-391f86284f6fff1011ace7136f4bd2bb438de3c6.tar.bz2
binutils-gdb-391f86284f6fff1011ace7136f4bd2bb438de3c6.zip
Turn some value offset functions into method
This changes various offset-related functions to be methods of value. Much of this patch was written by script. 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c
index 0ac4d6a63cc..abe0d34f042 100644
--- a/gdb/mi/mi-cmd-stack.c
+++ b/gdb/mi/mi-cmd-stack.c
@@ -507,7 +507,7 @@ list_arg_or_local (const struct frame_arg *arg, enum what_to_list what,
to its representation. */
|| (val_print_scalar_type_p (arg->val->type ())
&& !value_bytes_available (arg->val,
- value_embedded_offset (arg->val),
+ arg->val->embedded_offset (),
arg->val->type ()->length ()))))
return;