aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2008-01-22 21:30:02 +0000
committerDaniel Jacobowitz <drow@false.org>2008-01-22 21:30:02 +0000
commitd8f82aba692cfba668eb6bf8545ddd7dd9e78da5 (patch)
tree2738c8153d1c90d994c281016ebe439424cd252a /gdb
parent115c7c25fec67e650084943e7e7282d2ad4a3d63 (diff)
downloadfsf-binutils-gdb-d8f82aba692cfba668eb6bf8545ddd7dd9e78da5.zip
fsf-binutils-gdb-d8f82aba692cfba668eb6bf8545ddd7dd9e78da5.tar.gz
fsf-binutils-gdb-d8f82aba692cfba668eb6bf8545ddd7dd9e78da5.tar.bz2
* gdb.base/float.exp: Allow missing floating point for m68k and
PowerPC.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog6
-rw-r--r--gdb/testsuite/gdb.base/float.exp18
2 files changed, 22 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 18f387c..2dc5eba 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2008-01-22 Daniel Jacobowitz <dan@codesourcery.com>
+ Vladimir Prus <vladimir@codesourcery.com>
+
+ * gdb.base/float.exp: Allow missing floating point for m68k and
+ PowerPC.
+
2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
* gdb.mi/basics.c: Setup for testing breakpoints
diff --git a/gdb/testsuite/gdb.base/float.exp b/gdb/testsuite/gdb.base/float.exp
index 4a28ecc..e0f0d9f 100644
--- a/gdb/testsuite/gdb.base/float.exp
+++ b/gdb/testsuite/gdb.base/float.exp
@@ -62,11 +62,25 @@ if { [istarget "alpha*-*-*"] } then {
} elseif [istarget "ia64-*-*"] then {
gdb_test "info float" "f0.*f1.*f127.*" "info float"
} elseif [istarget "m68k-*-*"] then {
- gdb_test "info float" "fp0.*fp1.*fp7.*" "info float"
+ gdb_test_multiple "info float" "info_float" {
+ -re "fp0.*fp1.*fp7.*$gdb_prompt $" {
+ pass "info float (with FPU)"
+ }
+ -re "No floating.point info available for this processor.*" {
+ pass "info float (without FPU)"
+ }
+ }
} elseif [istarget "mips*-*-*"] then {
gdb_test "info float" "f0:.*flt:.*dbl:.*" "info float"
} elseif [istarget "powerpc*-*-*"] then {
- gdb_test "info float" "f0.*f1.*f31.*fpscr.*" "info float"
+ gdb_test_multiple "info float" "info_float" {
+ -re "f0.*f1.*f31.*fpscr.*$gdb_prompt $" {
+ pass "info float (with FPU)"
+ }
+ -re "No floating.point info available for this processor.*" {
+ pass "info float (without FPU)"
+ }
+ }
} elseif [istarget "s390*-*-*"] then {
gdb_test "info float" "fpc.*f0.*f1.*f15.*" "info float"
} elseif [istarget "sh*-*"] then {