diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 14:17:50 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:22:16 -0700 |
commit | e989e63761c66d632e1e3b9b40feb12e76cc5dd3 (patch) | |
tree | 9eadbd3a0540dc8f0032f4f4e2c8f045eaa6fea2 /gdb/value.c | |
parent | 02744ba9a2cfb7d1d2b8ebb6e80178a68bf56e06 (diff) | |
download | gdb-e989e63761c66d632e1e3b9b40feb12e76cc5dd3.zip gdb-e989e63761c66d632e1e3b9b40feb12e76cc5dd3.tar.gz gdb-e989e63761c66d632e1e3b9b40feb12e76cc5dd3.tar.bz2 |
Turn value_bits_synthetic_pointer into a method
This changes value_bits_synthetic_pointer to be a method of value.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/gdb/value.c b/gdb/value.c index 6198fb8..75f8dc4 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -1365,15 +1365,13 @@ mark_value_bits_optimized_out (struct value *value, } int -value_bits_synthetic_pointer (const struct value *value, - LONGEST offset, LONGEST length) +value::bits_synthetic_pointer (LONGEST offset, LONGEST length) const { - if (value->m_lval != lval_computed - || !value->m_location.computed.funcs->check_synthetic_pointer) + if (m_lval != lval_computed + || !m_location.computed.funcs->check_synthetic_pointer) return 0; - return value->m_location.computed.funcs->check_synthetic_pointer (value, - offset, - length); + return m_location.computed.funcs->check_synthetic_pointer (this, offset, + length); } const struct lval_funcs * |