* eval.c (evaluate_subexp_standard): Fix type of result of mixed
authorDoug Evans <dje@google.com>
Mon, 4 Feb 2008 00:23:05 +0000 (00:23 +0000)
committerDoug Evans <dje@google.com>
Mon, 4 Feb 2008 00:23:05 +0000 (00:23 +0000)
commit301f0ecf99facbe3fd62ccefbc69a3dd3acc7235
tree412062f600c084e692c054aed6b904527f6eac46
parente44a2c9c3dd1e12fd2707c6407d3763fa8acae17
* eval.c (evaluate_subexp_standard): Fix type of result of mixed
integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
* valops.c (value_one): New function.
* value.h (value_one): Declare.

Fix argument promotion for binary arithmetic ops for C.
* valarith.c (unop_result_type): New fn.
(binop_result_type): New fn.
(value_binop): Move result type computation to binop_result_type.
(value_pos, value_neg, value_complement): Move result type
computation to unop_result_type.

* gdb.base/whatis-exp.exp: Fix expected result of whatis x+y, x-y, x*y.
gdb/ChangeLog
gdb/eval.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/whatis-exp.exp
gdb/valarith.c
gdb/valops.c
gdb/value.h