aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Love <cel@us.ibm.com>2021-07-20 17:42:48 -0500
committerCarl Love <cel@us.ibm.com>2021-07-26 10:47:56 -0500
commit4b41648fff32bb1fdf26bc6440323795f453862e (patch)
treecca7e40bf9dda95bb6e55c49d5e749c09a5080e9
parent0b73bf7fa3f5f84f0dc44bd3f971520474e020e3 (diff)
downloadgdb-4b41648fff32bb1fdf26bc6440323795f453862e.zip
gdb-4b41648fff32bb1fdf26bc6440323795f453862e.tar.gz
gdb-4b41648fff32bb1fdf26bc6440323795f453862e.tar.bz2
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.
-rw-r--r--gdb/testsuite/gdb.mi/mi-reverse.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-reverse.exp b/gdb/testsuite/gdb.mi/mi-reverse.exp
index 0bd1269..311a3a4 100644
--- a/gdb/testsuite/gdb.mi/mi-reverse.exp
+++ b/gdb/testsuite/gdb.mi/mi-reverse.exp
@@ -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"