diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-07 15:04:43 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-07 15:04:43 +0000 |
commit | dfa52d88e70f7149def79ecf95faea9f87477df4 (patch) | |
tree | bfed4ca0cf97d3b1c3b1cae9aa795e0d76f663e8 /gdb/value.c | |
parent | 303e4c21e7c9ddd98c577051f5c477f11a5c06ec (diff) | |
download | ppe42-binutils-dfa52d88e70f7149def79ecf95faea9f87477df4.tar.gz ppe42-binutils-dfa52d88e70f7149def79ecf95faea9f87477df4.zip |
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/value.c')
-rw-r--r-- | gdb/value.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/value.c b/gdb/value.c index cf9e137d1d..0006a40eed 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -179,6 +179,12 @@ value_lazy (struct value *value) return value->lazy; } +void +set_value_lazy (struct value *value, int val) +{ + value->lazy = val; +} + const bfd_byte * value_contents (struct value *value) { @@ -994,7 +1000,7 @@ value_primitive_field (struct value *arg1, int offset, v = allocate_value (value_enclosing_type (arg1)); v->type = type; if (value_lazy (arg1)) - VALUE_LAZY (v) = 1; + set_value_lazy (v, 1); else memcpy (value_contents_all_raw (v), value_contents_all_raw (arg1), TYPE_LENGTH (value_enclosing_type (arg1))); @@ -1010,7 +1016,7 @@ value_primitive_field (struct value *arg1, int offset, offset += TYPE_FIELD_BITPOS (arg_type, fieldno) / 8; v = allocate_value (type); if (value_lazy (arg1)) - VALUE_LAZY (v) = 1; + set_value_lazy (v, 1); else memcpy (value_contents_raw (v), value_contents_raw (arg1) + offset, |