diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 09:44:47 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:21:07 -0700 |
commit | 5011c493fb54235b47fbd76e9734072995d93da8 (patch) | |
tree | 265e8d7258f005a399660d041c80a9536792229e /gdb/value.c | |
parent | f49d5fa263e834a4cf171f43a450ac5b1ae5ae30 (diff) | |
download | gdb-5011c493fb54235b47fbd76e9734072995d93da8.zip gdb-5011c493fb54235b47fbd76e9734072995d93da8.tar.gz gdb-5011c493fb54235b47fbd76e9734072995d93da8.tar.bz2 |
Turn value_bitpos into method
This changes value_bitpos 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/value.c')
-rw-r--r-- | gdb/value.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/gdb/value.c b/gdb/value.c index 2cdbd7e..a51f5ad 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -1035,17 +1035,6 @@ set_value_offset (struct value *value, LONGEST offset) value->m_offset = offset; } -LONGEST -value_bitpos (const struct value *value) -{ - return value->m_bitpos; -} -void -set_value_bitpos (struct value *value, LONGEST bit) -{ - value->m_bitpos = bit; -} - struct value * value_parent (const struct value *value) { @@ -3941,7 +3930,7 @@ value_fetch_lazy_bitfield (struct value *val) if (value_lazy (parent)) value_fetch_lazy (parent); - unpack_value_bitfield (val, value_bitpos (val), val->bitsize (), + unpack_value_bitfield (val, val->bitpos (), val->bitsize (), value_contents_for_printing (parent).data (), value_offset (val), parent); } |