aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 14:17:50 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:22:16 -0700
commite989e63761c66d632e1e3b9b40feb12e76cc5dd3 (patch)
tree9eadbd3a0540dc8f0032f4f4e2c8f045eaa6fea2 /gdb/value.c
parent02744ba9a2cfb7d1d2b8ebb6e80178a68bf56e06 (diff)
downloadgdb-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.c12
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 *