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/cp-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/cp-valprint.c')
-rw-r--r-- | gdb/cp-valprint.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 476ec9c..634f5a9 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -282,7 +282,7 @@ cp_print_value_fields (struct value *val, struct ui_file *stream, opts->deref_ref = false; v = value_field_bitfield (type, i, valaddr, - value_embedded_offset (val), val); + val->embedded_offset (), val); common_val_print (v, stream, recurse + 1, opts, current_language); @@ -321,7 +321,7 @@ cp_print_value_fields (struct value *val, struct ui_file *stream, { CORE_ADDR addr; - i_offset += value_embedded_offset (val); + i_offset += val->embedded_offset (); addr = extract_typed_address (valaddr + i_offset, i_type); print_function_pointer_address (opts, type->arch (), @@ -432,7 +432,7 @@ cp_print_value (struct value *val, struct ui_file *stream, try { boffset = baseclass_offset (type, i, valaddr, - value_embedded_offset (val), + val->embedded_offset (), address, val); } catch (const gdb_exception_error &ex) |