summaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib/range-stepping-support.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/lib/range-stepping-support.exp')
-rw-r--r--gdb/testsuite/lib/range-stepping-support.exp8
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/testsuite/lib/range-stepping-support.exp b/gdb/testsuite/lib/range-stepping-support.exp
index 5961ab75cd0..c9708361f3b 100644
--- a/gdb/testsuite/lib/range-stepping-support.exp
+++ b/gdb/testsuite/lib/range-stepping-support.exp
@@ -25,15 +25,13 @@ proc exec_cmd_expect_vCont_count { cmd exp_vCont_r } {
set r_counter 0
set s_counter 0
set ret 1
- # We either get a stop reply in all-stop mode, or an OK in
- # non-stop mode.
- set vcont_reply "(T\[\[:xdigit:\]\]\[\[:xdigit:\]\]|OK)"
+ set any {[^\r\n]*}
gdb_test_multiple $cmd $test {
- -re "vCont;s\[^\r\n\]*Packet received: $vcont_reply" {
+ -re "vCont;s${any}\r\n" {
incr s_counter
exp_continue
}
- -re "vCont;r\[^\r\n\]*Packet received: $vcont_reply" {
+ -re "vCont;r${any}\r\n" {
incr r_counter
exp_continue
}