diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-31 16:13:08 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-13 15:22:17 -0700 |
commit | d00664dbba2802bacfed2335b6f249fc418182a0 (patch) | |
tree | d926f7656d767617427844def6d80e8e72817207 /gdb/valops.c | |
parent | cda0334434412d888443e9a98386255f2e0c2eab (diff) | |
download | gdb-d00664dbba2802bacfed2335b6f249fc418182a0.zip gdb-d00664dbba2802bacfed2335b6f249fc418182a0.tar.gz gdb-d00664dbba2802bacfed2335b6f249fc418182a0.tar.bz2 |
Turn many optimized-out value functions into methods
This turns many functions that are related to optimized-out or
availability-checking to be methods of value. The static function
value_entirely_covered_by_range_vector is also converted to be a
private method.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index aac32cc..b088a5d 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1066,9 +1066,9 @@ read_value_memory (struct value *val, LONGEST bit_offset, if (status == TARGET_XFER_OK) /* nothing */; else if (status == TARGET_XFER_UNAVAILABLE) - mark_value_bits_unavailable (val, (xfered_total * HOST_CHAR_BIT - + bit_offset), - xfered_partial * HOST_CHAR_BIT); + val->mark_bits_unavailable ((xfered_total * HOST_CHAR_BIT + + bit_offset), + xfered_partial * HOST_CHAR_BIT); else if (status == TARGET_XFER_EOF) memory_error (TARGET_XFER_E_IO, memaddr + xfered_total); else |