diff options
author | Doug Evans <dje@google.com> | 2008-02-04 00:23:05 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2008-02-04 00:23:05 +0000 |
commit | 301f0ecf99facbe3fd62ccefbc69a3dd3acc7235 (patch) | |
tree | 412062f600c084e692c054aed6b904527f6eac46 /gdb/value.h | |
parent | e44a2c9c3dd1e12fd2707c6407d3763fa8acae17 (diff) | |
download | gdb-301f0ecf99facbe3fd62ccefbc69a3dd3acc7235.zip gdb-301f0ecf99facbe3fd62ccefbc69a3dd3acc7235.tar.gz gdb-301f0ecf99facbe3fd62ccefbc69a3dd3acc7235.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/value.h b/gdb/value.h index 6086917..1289a97 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -392,6 +392,8 @@ extern struct value *value_cast (struct type *type, struct value *arg2); extern struct value *value_zero (struct type *type, enum lval_type lv); +extern struct value *value_one (struct type *type, enum lval_type lv); + extern struct value *value_repeat (struct value *arg1, int count); extern struct value *value_subscript (struct value *array, struct value *idx); |