Testsuite fixes
Andreas Schwab
schwab@suse.de
Sun Jul 6 21:32:00 GMT 2003
On m68k-linux addresses are usually negative, and "info float" now has
a generic implementation.
OK for HEAD and 6.0 branch?
Andreas.
2003-07-06 Andreas Schwab <schwab@suse.de>
* gdb.objc/basicclass.exp ("Call an Objective-C method with no
arguments"): Also match negative number.
* gdb.base/float.exp ("info float"): Add test for m68k-*-*.
--- gdb/testsuite/gdb.base/float.exp.~1.4.~ 2003-06-12 22:40:24.000000000 +0200
+++ gdb/testsuite/gdb.base/float.exp 2003-07-06 21:44:37.000000000 +0200
@@ -61,6 +61,8 @@ if { [istarget "alpha*-*-*"] } then {
gdb_test "info float" "R7:.*Status Word:.*Opcode:.*" "info float"
} 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"
} else {
gdb_test "info float" "No floating.point info available for this processor." "info float"
}
--- gdb/testsuite/gdb.objc/basicclass.exp.~1.1.12.1.~ 2003-06-26 23:09:20.000000000 +0200
+++ gdb/testsuite/gdb.objc/basicclass.exp 2003-07-06 23:24:16.000000000 +0200
@@ -178,7 +178,7 @@ gdb_test continue \
# Test calling Objective-C methods
#
gdb_test "print \[self printHi\]" \
- "Hi.*\\$\[0-9\] = \[0-9\]+" \
+ "Hi.*\\$\[0-9\] = -?\[0-9\]+" \
"Call an Objective-C method with no arguments"
gdb_test "print \[self printNumber: 42\]" \
More information about the Gdb-patches
mailing list