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 | 55dcce129c60fa230b81b758d4dcc8ab8fd9cdb6 (patch) | |
tree | ad74e955a3db718a3d1d7dd60ee7a9cb18ded2fa /gdb/value.h | |
parent | abc10851528ab324b577c776edbc05388b7f349f (diff) | |
download | gdb-55dcce129c60fa230b81b758d4dcc8ab8fd9cdb6.tar.gz |
* 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 6086917b409..1289a9726f7 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); |