aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
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
parent463b870d01ae26aa3366e99fb86416b1c67f8061 (diff)
downloadgdb-391f86284f6fff1011ace7136f4bd2bb438de3c6.zip
gdb-391f86284f6fff1011ace7136f4bd2bb438de3c6.tar.gz
gdb-391f86284f6fff1011ace7136f4bd2bb438de3c6.tar.bz2
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')
-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 0ac4d6a..abe0d34 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;