diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-11-15 22:17:59 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-11-15 22:17:59 +0000 |
commit | 3f818b4efe9e0432d69596edc5e158e983c99428 (patch) | |
tree | 31d10459fc3aeaae6e0308ee508a3387eee86894 /gdb/value.c | |
parent | 19c525f8fcfa4010da224a11819ad373a591f39b (diff) | |
download | gdb-3f818b4efe9e0432d69596edc5e158e983c99428.tar.gz |
2004-11-15 Andrew Cagney <cagney@gnu.org>
* findvar.c (value_of_register): Set the frame ID.
* value.c (value_primitive_field): Copy the frame ID.
* valops.c (value_assign): Simplify lval_register case, there's
always a frame.
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/value.c b/gdb/value.c index 2bbaeaca7e5..5afc5b447c9 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -964,6 +964,7 @@ value_primitive_field (struct value *arg1, int offset, VALUE_LVAL (v) = lval_internalvar_component; VALUE_ADDRESS (v) = VALUE_ADDRESS (arg1); VALUE_REGNUM (v) = VALUE_REGNUM (arg1); + VALUE_FRAME_ID (v) = VALUE_FRAME_ID (arg1); /* VALUE_OFFSET (v) = VALUE_OFFSET (arg1) + offset + TYPE_FIELD_BITPOS (arg_type, fieldno) / 8; */ return v; |