aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-07 15:04:43 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-07 15:04:43 +0000
commitdfa52d88e70f7149def79ecf95faea9f87477df4 (patch)
treebfed4ca0cf97d3b1c3b1cae9aa795e0d76f663e8 /gdb/valops.c
parent303e4c21e7c9ddd98c577051f5c477f11a5c06ec (diff)
downloadgdb-dfa52d88e70f7149def79ecf95faea9f87477df4.zip
gdb-dfa52d88e70f7149def79ecf95faea9f87477df4.tar.gz
gdb-dfa52d88e70f7149def79ecf95faea9f87477df4.tar.bz2
2005-02-07 Andrew Cagney <cagney@gnu.org>
* value.h (VALUE_LAZY): Delete (set_value_lazy): Declare. * value.c (set_value_lazy): Define. * valops.c, valarith.c, jv-valprint.c, jv-lang.c: Update. * gnu-v2-abi.c, findvar.c, dwarf2loc.c, ada-lang.c: Update.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index a30123d..8aa4413 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -478,7 +478,7 @@ value_at_lazy (struct type *type, CORE_ADDR addr)
VALUE_LVAL (val) = lval_memory;
VALUE_ADDRESS (val) = addr;
- VALUE_LAZY (val) = 1;
+ set_value_lazy (val, 1);
return val;
}
@@ -506,7 +506,7 @@ value_fetch_lazy (struct value *val)
if (length)
read_memory (addr, value_contents_all_raw (val), length);
- VALUE_LAZY (val) = 0;
+ set_value_lazy (val, 0);
return 0;
}
@@ -1311,7 +1311,7 @@ search_struct_field (char *name, struct value *arg1, int offset,
VALUE_FRAME_ID (v2) = VALUE_FRAME_ID (arg1);
v2->offset = value_offset (arg1) + boffset;
if (value_lazy (arg1))
- VALUE_LAZY (v2) = 1;
+ set_value_lazy (v2, 1);
else
memcpy (value_contents_raw (v2),
value_contents_raw (arg1) + boffset,
@@ -2762,7 +2762,7 @@ value_slice (struct value *array, int lowbound, int length)
TYPE_CODE (slice_type) = TYPE_CODE (array_type);
slice = allocate_value (slice_type);
if (value_lazy (array))
- VALUE_LAZY (slice) = 1;
+ set_value_lazy (slice, 1);
else
memcpy (value_contents_writeable (slice),
value_contents (array) + offset,