gdb:
authorKen Werner <ken.werner@de.ibm.com>
Wed, 3 Nov 2010 13:49:38 +0000 (13:49 +0000)
committerKen Werner <ken.werner@de.ibm.com>
Wed, 3 Nov 2010 13:49:38 +0000 (13:49 +0000)
commitc37f7098e9cb05b2574cf82e6ae299530ed407ba
tree04d07481c7bee9f22662d80e56efecb1311ce103
parent2ebf396434301f62203a5f1d3ada888af8dd193d
gdb:
* value.h (value_non_lval): Declare.
* value.c (value_non_lval): New function.
* eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
non-lvalue.

gdb/testsuite:
* gdb.base/exprs.exp: Add tests for pre-/post- in-/decrement operators.
gdb/ChangeLog
gdb/eval.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/exprs.exp
gdb/value.c
gdb/value.h