This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH, GDB/ARM] Expect prompt after no FPU warning
- From: Thomas Preudhomme <thomas dot preudhomme at foss dot arm dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 17 May 2017 10:13:16 +0100
- Subject: [PATCH, GDB/ARM] Expect prompt after no FPU warning
- Authentication-results: sourceware.org; auth=none
Hi,
The expected output for info float when the ARM target has no FPU does
not include the GDB prompt. This occasionally cause a test failure in
the following "finish" test when the prompt happens after the test has been
marked as PASSed, since it does not match the expected output.
This patch adds the GDB prompt to the expected output of the no FPU
regular expression.
ChangeLog entry is as follows:
*** gdb/testsuite/ChangeLog ***
2017-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
* gdb.base/float.exp (info float): Expect GDB prompt for ARM
targets without FPU.
Testing: test PASSes with that patch.
Is this ok for master branch?
Best regards,
Thomas
diff --git a/gdb/testsuite/gdb.base/float.exp b/gdb/testsuite/gdb.base/float.exp
index a4762c9742682391074f0707e56a6eae4cd70c6e..4f928c19491f55b235aaf68a4c9351531440aa4e 100644
--- a/gdb/testsuite/gdb.base/float.exp
+++ b/gdb/testsuite/gdb.base/float.exp
@@ -50,7 +50,7 @@ if { [is_aarch64_target] } then {
# if we have NEON.
pass "info float (VFP)"
}
- -re "No floating.point info available for this processor.*" {
+ -re "No floating.point info available for this processor.*$gdb_prompt $" {
pass "info float (without FPU)"
}
}