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/valarith.c | |
parent | cda0334434412d888443e9a98386255f2e0c2eab (diff) | |
download | binutils-d00664dbba2802bacfed2335b6f249fc418182a0.zip binutils-d00664dbba2802bacfed2335b6f249fc418182a0.tar.gz binutils-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/valarith.c')
-rw-r--r-- | gdb/valarith.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c index e92b667..854d061 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c @@ -188,10 +188,10 @@ value_subscript (struct value *array, LONGEST index) struct type *elt_type = check_typedef (tarray->target_type ()); LONGEST elt_size = type_length_units (elt_type); if (!array->lazy () - && !value_bytes_available (array, elt_size * index, elt_size)) + && !array->bytes_available (elt_size * index, elt_size)) { struct value *val = value::allocate (elt_type); - mark_value_bytes_unavailable (val, 0, elt_size); + val->mark_bytes_unavailable (0, elt_size); VALUE_LVAL (val) = lval_memory; val->set_address (array->address () + elt_size * index); return val; |