summaryrefslogtreecommitdiff
path: root/gdb/cp-abi.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-31 10:05:01 -0700
committerTom Tromey <tom@tromey.com>2023-02-13 15:21:07 -0700
commit76675c4d0bc454ed1ae369f98ad848754d0e81a0 (patch)
tree6ab6267f6ca517ea44185ad5211f0c8075855a89 /gdb/cp-abi.h
parentfac7bdaaab474e2741b88d24781facd9521d0e9c (diff)
downloadbinutils-gdb-76675c4d0bc454ed1ae369f98ad848754d0e81a0.tar.gz
Turn value_offset into method
This changes value_offset to be a method of value. Much of this patch was written by script. Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/cp-abi.h')
-rw-r--r--gdb/cp-abi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cp-abi.h b/gdb/cp-abi.h
index 383746244a7..f7c903eca2d 100644
--- a/gdb/cp-abi.h
+++ b/gdb/cp-abi.h
@@ -123,12 +123,12 @@ extern struct value *value_virtual_fn_field (struct value **valuep,
- If *USING_ENC is zero, then *TOP is the offset from the start
of the complete object to the start of the embedded subobject
VALUE represents. In other words, the enclosing object starts
- at VALUE_ADDR (VALUE) + VALUE_OFFSET (VALUE) +
+ at VALUE_ADDR (VALUE) + VALUE->offset () +
value_embedded_offset (VALUE) + *TOP
- If *USING_ENC is non-zero, then *TOP is the offset from the
address of the complete object to the enclosing object stored
in VALUE. In other words, the enclosing object starts at
- VALUE_ADDR (VALUE) + VALUE_OFFSET (VALUE) + *TOP.
+ VALUE_ADDR (VALUE) + VALUE->offset () + *TOP.
If VALUE's type and enclosing type are the same, then these two
cases are equivalent.