OSDN Git Service

* eval.c (evaluate_subexp_standard): Fix type of result of mixed
authordevans <devans>
Mon, 4 Feb 2008 00:23:04 +0000 (00:23 +0000)
committerdevans <devans>
Mon, 4 Feb 2008 00:23:04 +0000 (00:23 +0000)
commitd8ffc215a7850bbadd86ef3d0eadd7197250552c
treee4969f43e98f99747c5d7133358c358683b2530b
parentaf68d134e9cbdcc5bccdd20c810cdd7b506e285e
* 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