aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/whatis-exp.exp
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2008-02-04 00:23:05 +0000
committerDoug Evans <dje@google.com>2008-02-04 00:23:05 +0000
commit301f0ecf99facbe3fd62ccefbc69a3dd3acc7235 (patch)
tree412062f600c084e692c054aed6b904527f6eac46 /gdb/testsuite/gdb.base/whatis-exp.exp
parente44a2c9c3dd1e12fd2707c6407d3763fa8acae17 (diff)
downloadgdb-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/testsuite/gdb.base/whatis-exp.exp')
-rw-r--r--gdb/testsuite/gdb.base/whatis-exp.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.base/whatis-exp.exp b/gdb/testsuite/gdb.base/whatis-exp.exp
index 51b0e92..1ad5e5a 100644
--- a/gdb/testsuite/gdb.base/whatis-exp.exp
+++ b/gdb/testsuite/gdb.base/whatis-exp.exp
@@ -112,7 +112,7 @@ gdb_expect {
send_gdb "whatis x+y\n"
gdb_expect {
- -re ".*type = long.*$gdb_prompt $" {
+ -re ".*type = int.*$gdb_prompt $" {
pass "whatis value of x+y"
}
-re ".*$gdb_prompt $" { fail "whatis value of x+y" }
@@ -121,7 +121,7 @@ gdb_expect {
send_gdb "whatis x-y\n"
gdb_expect {
- -re ".*type = long.*$gdb_prompt $" {
+ -re ".*type = int.*$gdb_prompt $" {
pass "whatis value of x-y"
}
-re ".*$gdb_prompt $" { fail "whatis value of x-y" }
@@ -130,7 +130,7 @@ gdb_expect {
send_gdb "whatis x*y\n"
gdb_expect {
- -re ".*type = long.*$gdb_prompt $" {
+ -re ".*type = int.*$gdb_prompt $" {
pass "whatis value of x*y"
}
-re ".*$gdb_prompt $" { fail "whatis value of x*y" }