diff options
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/opencl-lang.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6884c2d..14da564 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com> + * opencl-lang.c (evaluate_subexp_opencl): If + EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to + the returned value in the STRUCTOP_STRUCT case. + +2016-05-27 Andrew Burgess <andrew.burgess@embecosm.com> + * eval.c (evaluate_subexp_standard): If EVAL_AVOID_SIDE_EFFECTS mode, forward the VALUE_LVAL attribute to the returned value in the STRUCTOP_PTR case. diff --git a/gdb/opencl-lang.c b/gdb/opencl-lang.c index 7799735..767d3bc 100644 --- a/gdb/opencl-lang.c +++ b/gdb/opencl-lang.c @@ -984,7 +984,7 @@ Cannot perform conditional operation on vectors with different sizes")); "structure"); if (noside == EVAL_AVOID_SIDE_EFFECTS) - v = value_zero (value_type (v), not_lval); + v = value_zero (value_type (v), VALUE_LVAL (v)); return v; } } |