diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 10:05:01 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:07 -0700 |
commit | 76675c4d0bc454ed1ae369f98ad848754d0e81a0 (patch) | |
tree | 6ab6267f6ca517ea44185ad5211f0c8075855a89 /gdb/ada-lang.c | |
parent | fac7bdaaab474e2741b88d24781facd9521d0e9c (diff) | |
download | binutils-76675c4d0bc454ed1ae369f98ad848754d0e81a0.zip binutils-76675c4d0bc454ed1ae369f98ad848754d0e81a0.tar.gz binutils-76675c4d0bc454ed1ae369f98ad848754d0e81a0.tar.bz2 |
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/ada-lang.c')
-rw-r--r-- | gdb/ada-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index b4fcce2..c660e74 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -2838,7 +2838,7 @@ ada_value_primitive_packed_val (struct value *obj, const gdb_byte *valaddr, ++new_offset; v->set_bitpos (v->bitpos () - HOST_CHAR_BIT); } - set_value_offset (v, new_offset); + v->set_offset (new_offset); /* Also set the parent value. This is needed when trying to assign a new value (in inferior memory). */ |