aboutsummaryrefslogtreecommitdiff
path: root/gdb/findvar.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-08 02:29:18 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-08 02:29:18 +0000
commitf5cf64a7277fc62fa3243371962c81fe198db64d (patch)
treef0faa0e7b611ab4e86dc85a66cf24917e2effd2c /gdb/findvar.c
parent17cf0ecde3a59551f7792b456e7533687f3ec8d1 (diff)
downloadgdb-f5cf64a7277fc62fa3243371962c81fe198db64d.zip
gdb-f5cf64a7277fc62fa3243371962c81fe198db64d.tar.gz
gdb-f5cf64a7277fc62fa3243371962c81fe198db64d.tar.bz2
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/findvar.c b/gdb/findvar.c
index 56d46fe..9675fc5 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;