aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.h
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.h
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.h')
-rw-r--r--gdb/value.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/gdb/value.h b/gdb/value.h
index b025d67..5738584 100644
--- a/gdb/value.h
+++ b/gdb/value.h
@@ -455,6 +455,11 @@ public:
values. */
bool contents_eq (const struct value *val2) const;
+ /* Given a value, determine whether the bits starting at OFFSET and
+ extending for LENGTH bits are a synthetic pointer. */
+
+ int bits_synthetic_pointer (LONGEST offset, LONGEST length) const;
+
/* Type of value; either not an lval, or one of the various
different possible kinds of lval. */
@@ -862,12 +867,6 @@ extern struct value *coerce_ref (struct value *value);
extern struct value *coerce_array (struct value *value);
-/* Given a value, determine whether the bits starting at OFFSET and
- extending for LENGTH bits are a synthetic pointer. */
-
-extern int value_bits_synthetic_pointer (const struct value *value,
- LONGEST offset, LONGEST length);
-
/* Given a value, determine whether the contents bytes starting at
OFFSET and extending for LENGTH bytes are available. This returns
nonzero if all bytes in the given range are available, zero if any