Fix for mi-reverse.exp

This test fails on PPC64 because PPC64 prints the value of 3.5 with
more significant digits than on Intel. The patch updates the regular
expression to allow for more significant digits on the constant.

gdb/testsuite/ChangeLog

	* gdb.mi/mi-reverse.exp: mi_execute_to exec-step reverse add check
	for additional digits.
This commit is contained in:
Carl Love
2021-07-20 17:42:48 -05:00
parent 0b73bf7fa3
commit 4b41648fff

View File

@ -111,7 +111,7 @@ proc test_controlled_execution_reverse {} {
mi_execute_to "exec-step --reverse" \
"end-stepping-range" "callee1" \
"\{name=\"intarg\",value=\"2\"\},\{name=\"strarg\",value=\"$hex \\\\\"A string argument\.\\\\\"\"\},\{name=\"fltarg\",value=\"3.5\"\}" \
"\{name=\"intarg\",value=\"2\"\},\{name=\"strarg\",value=\"$hex \\\\\"A string argument\.\\\\\"\"\},\{name=\"fltarg\",value=\"3.5\[0-9\]*\"\}" \
"basics.c" $line_callee1_close "" \
"reverse step to callee1"