diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-08 02:29:18 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-08 02:29:18 +0000 |
commit | 17321ecb308bf7c08205269ed7b6c590831d35f0 (patch) | |
tree | 308cb72fe23783a62f6a5e58d1bbb03070821904 /gdb/findvar.c | |
parent | a4f858ed554bed8ce806e478552ba4a4781224a6 (diff) | |
download | gdb-17321ecb308bf7c08205269ed7b6c590831d35f0.tar.gz |
2005-02-07 Andrew Cagney <cagney@gnu.org>
* value.h (set_value_offset): Declare.
* value.c (set_value_offset): Declare.
* gnu-v2-abi.c, jv-valprint.c, valarith.c, valops.c: Update.
* findvar.c: Update.
Diffstat (limited to 'gdb/findvar.c')
-rw-r--r-- | gdb/findvar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c index 56d46fe9f23..9675fc5f771 100644 --- a/gdb/findvar.c +++ b/gdb/findvar.c @@ -710,9 +710,9 @@ value_from_register (struct type *type, int regnum, struct frame_info *frame) if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG && len < register_size (current_gdbarch, regnum)) /* Big-endian, and we want less than full size. */ - v->offset = register_size (current_gdbarch, regnum) - len; + set_value_offset (v, register_size (current_gdbarch, regnum) - len); else - v->offset = 0; + set_value_offset (v, 0); memcpy (value_contents_raw (v), value_bytes + value_offset (v), len); } return v; |