[ob] Adjust float.exp for targets with optional FPU
Daniel Jacobowitz
drow@false.org
Tue Jan 22 21:31:00 GMT 2008
GDB now supports both m68k (ColdFire) and PowerPC (8xx, e500) variants
which do not include floating point registers. So allow the float.exp
test to pass if we autodetect this.
Tested on powerpc-linux; it's also been in our internal tree for a few
months now.
--
Daniel Jacobowitz
CodeSourcery
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.
--- gdb.base/float.exp 2008-01-02 00:20:27.000000000 -0800
+++ gdb.base/float.exp 2008-01-22 12:41:12.000000000 -0800
@@ -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 {
More information about the Gdb-patches
mailing list