aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-08-30 01:45:30 +0000
committerAndrew Cagney <cagney@redhat.com>2001-08-30 01:45:30 +0000
commita116b84cf971dec23ac5369e25983910e4e2e948 (patch)
treef622cc315bd2c98bf226c2e3d043c8912c379f10 /gdb/testsuite/gdb.mi
parent5e47149d1047c8462c1115cb5839ad43d7868610 (diff)
downloadgdb-a116b84cf971dec23ac5369e25983910e4e2e948.zip
gdb-a116b84cf971dec23ac5369e25983910e4e2e948.tar.gz
gdb-a116b84cf971dec23ac5369e25983910e4e2e948.tar.bz2
Cleanups. Now passes!
Diffstat (limited to 'gdb/testsuite/gdb.mi')
-rw-r--r--gdb/testsuite/gdb.mi/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.mi/mi-var-cmd.exp12
-rw-r--r--gdb/testsuite/gdb.mi/mi0-var-cmd.exp12
3 files changed, 17 insertions, 12 deletions
diff --git a/gdb/testsuite/gdb.mi/ChangeLog b/gdb/testsuite/gdb.mi/ChangeLog
index 71e0482..a9681db 100644
--- a/gdb/testsuite/gdb.mi/ChangeLog
+++ b/gdb/testsuite/gdb.mi/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-29 Andrew Cagney <cagney@redhat.com>
+
+ * mi-var-cmd.exp, mi0-var-cmd.exp: Variable lpcharacter has one
+ child. Soften floating point tests.
+
2001-08-09 Andrew Cagney <ac131313@redhat.com>
* mi0-var-block.exp, mi0-stack.exp, mi0-simplerun.exp,
diff --git a/gdb/testsuite/gdb.mi/mi-var-cmd.exp b/gdb/testsuite/gdb.mi/mi-var-cmd.exp
index a916ab3..03540b4 100644
--- a/gdb/testsuite/gdb.mi/mi-var-cmd.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-cmd.exp
@@ -100,7 +100,7 @@ mi_gdb_test "-var-create lcharacter * lcharacter" \
"create local variablelcharacter "
mi_gdb_test "-var-create lpcharacter * lpcharacter" \
- "\\^done,name=\"lpcharacter\",numchild=\"0\",type=\"char \\*\"" \
+ "\\^done,name=\"lpcharacter\",numchild=\"1\",type=\"char \\*\"" \
"create local variable lpcharacter"
mi_gdb_test "-var-create llong * llong" \
@@ -391,14 +391,14 @@ mi_gdb_test "-var-assign lplong &llong" \
"\\^done,value=\"$hex\"" \
"assign to lplong"
-mi_gdb_test "-var-assign lfloat 3.4" \
- "\\^done,value=\"3.4.*\"" \
+mi_gdb_test "-var-assign lfloat 3.4567" \
+ "\\^done,value=\"3.45.*\"" \
"assign to lfloat"
mi_gdb_test "-var-evaluate-expression lfloat" \
- "\\^done,value=\"3.4.*\"" \
+ "\\^done,value=\"3.45.*\"" \
"eval lfloat"
-mi_gdb_test "-var-assign lfloat 1.2" \
- "\\^done,value=\"1.2.*\"" \
+mi_gdb_test "-var-assign lfloat 1.2345" \
+ "\\^done,value=\"1.23.*\"" \
"assign to lfloat"
mi_gdb_test "-var-assign lpfloat &lfloat+4" \
diff --git a/gdb/testsuite/gdb.mi/mi0-var-cmd.exp b/gdb/testsuite/gdb.mi/mi0-var-cmd.exp
index df3b9f0..c3ed0b2 100644
--- a/gdb/testsuite/gdb.mi/mi0-var-cmd.exp
+++ b/gdb/testsuite/gdb.mi/mi0-var-cmd.exp
@@ -100,7 +100,7 @@ mi_gdb_test "-var-create lcharacter * lcharacter" \
"create local variablelcharacter "
mi_gdb_test "-var-create lpcharacter * lpcharacter" \
- "\\^done,name=\"lpcharacter\",numchild=\"0\",type=\"char \\*\"" \
+ "\\^done,name=\"lpcharacter\",numchild=\"1\",type=\"char \\*\"" \
"create local variable lpcharacter"
mi_gdb_test "-var-create llong * llong" \
@@ -391,14 +391,14 @@ mi_gdb_test "-var-assign lplong &llong" \
"\\^done,value=\"$hex\"" \
"assign to lplong"
-mi_gdb_test "-var-assign lfloat 3.4" \
- "\\^done,value=\"3.4.*\"" \
+mi_gdb_test "-var-assign lfloat 3.4567" \
+ "\\^done,value=\"3.45.*\"" \
"assign to lfloat"
mi_gdb_test "-var-evaluate-expression lfloat" \
- "\\^done,value=\"3.4.*\"" \
+ "\\^done,value=\"3.45.*\"" \
"eval lfloat"
-mi_gdb_test "-var-assign lfloat 1.2" \
- "\\^done,value=\"1.2.*\"" \
+mi_gdb_test "-var-assign lfloat 1.2345" \
+ "\\^done,value=\"1.23.*\"" \
"assign to lfloat"
mi_gdb_test "-var-assign lpfloat &lfloat+4" \