aboutsummaryrefslogtreecommitdiff
path: root/gdb/valarith.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-08 04:57:03 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-08 04:57:03 +0000
commit9bbda5038131704610b27bee2c70e81c68374f61 (patch)
tree29a7f21f9bb6823656559ada652a519530f57498 /gdb/valarith.c
parent0a40490e6aa43a28c471f4db8a18a4820cbf58c3 (diff)
downloadgdb-9bbda5038131704610b27bee2c70e81c68374f61.zip
gdb-9bbda5038131704610b27bee2c70e81c68374f61.tar.gz
gdb-9bbda5038131704610b27bee2c70e81c68374f61.tar.bz2
2005-02-07 Andrew Cagney <cagney@gnu.org>
* value.c (set_value_bitpos, set_value_bitsize): Define. * value.h (set_value_bitpos, set_value_bitsize): Declare. * ada-lang.c, valarith.c: Update.
Diffstat (limited to 'gdb/valarith.c')
-rw-r--r--gdb/valarith.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c
index 6447b48..b3f6c49 100644
--- a/gdb/valarith.c
+++ b/gdb/valarith.c
@@ -233,8 +233,8 @@ value_subscript (struct value *array, struct value *idx)
bit_index = index % TARGET_CHAR_BIT;
byte >>= (BITS_BIG_ENDIAN ? TARGET_CHAR_BIT - 1 - bit_index : bit_index);
v = value_from_longest (LA_BOOL_TYPE, byte & 1);
- v->bitpos = bit_index;
- v->bitsize = 1;
+ set_value_bitpos (v, bit_index);
+ set_value_bitsize (v, 1);
VALUE_LVAL (v) = VALUE_LVAL (array);
if (VALUE_LVAL (array) == lval_internalvar)
VALUE_LVAL (v) = lval_internalvar_component;