PR exp/15364:
authorTom Tromey <tromey@redhat.com>
Mon, 13 May 2013 16:51:52 +0000 (16:51 +0000)
committerTom Tromey <tromey@redhat.com>
Mon, 13 May 2013 16:51:52 +0000 (16:51 +0000)
commitac1ca910d74d5bd1d2800cb190659c9e3043a904
treea62ca0d718e74c6dd7d0f7eca45ac3c9a1a728fe
parentfd7b2a545d530118913b1aefbfd8526785d3c2cc
PR exp/15364:
* eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
STRUCTOP_PTR>: Return a not_lval value for
EVAL_AVOID_SIDE_EFFECTS.
* opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
for EVAL_AVOID_SIDE_EFFECTS.
gdb/testsuite
* gdb.base/exprs.exp (test_expr): Add regression test.
* gdb.base/exprs.c (null_t_struct): New global.
gdb/ChangeLog
gdb/eval.c
gdb/opencl-lang.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/exprs.c
gdb/testsuite/gdb.base/exprs.exp