aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/value.c b/gdb/value.c
index d1ca3dc..aa8384c 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -537,6 +537,18 @@ value_bits_valid (const struct value *value, int offset, int length)
}
int
+value_bits_synthetic_pointer (const struct value *value,
+ int offset, int length)
+{
+ if (value == NULL || value->lval != lval_computed
+ || !value->location.computed.funcs->check_synthetic_pointer)
+ return 0;
+ return value->location.computed.funcs->check_synthetic_pointer (value,
+ offset,
+ length);
+}
+
+int
value_embedded_offset (struct value *value)
{
return value->embedded_offset;