diff options
author | Daniel Jacobowitz <dan@debian.org> | 2004-11-21 19:52:13 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2004-11-21 19:52:13 +0000 |
commit | e0acf0fdb4e50f6ac50a852de684ba198426f4f5 (patch) | |
tree | d8884312271fbc8648eb8c1a39972b0bb85c862d /gdb/valops.c | |
parent | eda87aac32f24d39d7009a55ee2d0ac5a6569c6f (diff) | |
download | gdb-e0acf0fdb4e50f6ac50a852de684ba198426f4f5.tar.gz |
* valarith.c (value_subscript): Copy VALUE_FRAME_ID.
(value_subscripted_rvalue): Likewise.
* valops.c (search_struct_field, value_slice): Likewise.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index fa63871a532..c708fac590a 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -1307,6 +1307,7 @@ search_struct_field (char *name, struct value *arg1, int offset, { VALUE_LVAL (v2) = VALUE_LVAL (arg1); VALUE_ADDRESS (v2) = VALUE_ADDRESS (arg1); + VALUE_FRAME_ID (v2) = VALUE_FRAME_ID (arg1); v2->offset = value_offset (arg1) + boffset; if (VALUE_LAZY (arg1)) VALUE_LAZY (v2) = 1; @@ -2768,6 +2769,7 @@ value_slice (struct value *array, int lowbound, int length) else VALUE_LVAL (slice) = VALUE_LVAL (array); VALUE_ADDRESS (slice) = VALUE_ADDRESS (array); + VALUE_FRAME_ID (slice) = VALUE_FRAME_ID (array); slice->offset = value_offset (array) + offset; } return slice; |