aboutsummaryrefslogtreecommitdiff
path: root/gdb/valarith.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-02 22:34:36 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-02 22:34:36 +0000
commitd69fe07ead0b14603cb37fd9659bffc11afa37b1 (patch)
tree533dc9f35cdcd999b12c8520a7fda6f944af14e0 /gdb/valarith.c
parent46615f07c3db91f7a0f138baec128749604dca43 (diff)
downloadfsf-binutils-gdb-d69fe07ead0b14603cb37fd9659bffc11afa37b1.zip
fsf-binutils-gdb-d69fe07ead0b14603cb37fd9659bffc11afa37b1.tar.gz
fsf-binutils-gdb-d69fe07ead0b14603cb37fd9659bffc11afa37b1.tar.bz2
2005-02-02 Andrew Cagney <cagney@gnu.org>
* value.h (value_lazy): Declare. * varobj.c, value.c, valops.c, valarith.c, printcmd.c: Update. * cp-valprint.c, breakpoint.c, ada-lang.c: Update.
Diffstat (limited to 'gdb/valarith.c')
-rw-r--r--gdb/valarith.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valarith.c b/gdb/valarith.c
index 5233d08..5b21957 100644
--- a/gdb/valarith.c
+++ b/gdb/valarith.c
@@ -268,7 +268,7 @@ value_subscripted_rvalue (struct value *array, struct value *idx, int lowerbound
error ("no such vector element");
v = allocate_value (elt_type);
- if (VALUE_LAZY (array))
+ if (value_lazy (array))
VALUE_LAZY (v) = 1;
else
memcpy (VALUE_CONTENTS (v), VALUE_CONTENTS (array) + elt_offs, elt_size);