diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 10:40:38 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:07 -0700 |
commit | 391f86284f6fff1011ace7136f4bd2bb438de3c6 (patch) | |
tree | 7d7ab420625896541ce7cd7c3302aa210325b619 /gdb/d-valprint.c | |
parent | 463b870d01ae26aa3366e99fb86416b1c67f8061 (diff) | |
download | gdb-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/d-valprint.c')
-rw-r--r-- | gdb/d-valprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/d-valprint.c b/gdb/d-valprint.c index 6c7748e..bebe02c 100644 --- a/gdb/d-valprint.c +++ b/gdb/d-valprint.c @@ -81,7 +81,7 @@ d_value_print_inner (struct value *val, struct ui_file *stream, int recurse, switch (type->code ()) { case TYPE_CODE_STRUCT: - ret = dynamic_array_type (type, value_embedded_offset (val), + ret = dynamic_array_type (type, val->embedded_offset (), value_address (val), stream, recurse, val, options); if (ret == 0) |