* ax-gdb.c (gen_expr): Add UNOP_PLUS case.
authorNathan Sidwell <nathan@codesourcery.com>
Tue, 8 Mar 2005 14:35:20 +0000 (14:35 +0000)
committerNathan Sidwell <nathan@codesourcery.com>
Tue, 8 Mar 2005 14:35:20 +0000 (14:35 +0000)
commit36e9969cac95317f057b47509cf63271bccd98b0
treeb8c229973ba4500194f9b95686edd5d45fef1e89
parent3de11b2ef2c380882c4dcf3fa980b9817d229b04
* ax-gdb.c (gen_expr): Add UNOP_PLUS case.
* c-exp.y (exp): Add unary plus.
* eval.c (evaluate_subexp_standard): Add UNOP_PLUS case.
* valarith.c (value_x_unop): Add UNOP_PLUS case.
(value_pos): New.
* value.h (value_pos): Declare.

* gdb.cp/userdef.cc (A1::operator+): New unary plus.
(A2): New class.
(main): Test operator+.
* gdb.cp/userdef.exp: Test unary plus.  Use A2::operator+ for
breakpoint test.
gdb/ChangeLog
gdb/ax-gdb.c
gdb/c-exp.y
gdb/eval.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/userdef.cc
gdb/testsuite/gdb.cp/userdef.exp
gdb/valarith.c
gdb/value.h