set prefix "$i to handler"
# Run around to the done
+ # You can add more patterns to this if you need them.
set test "$prefix; resync"
gdb_test_multiple "continue" "$test" {
-re "done = 0.*$gdb_prompt " {
pass "$test"
}
- # other patterns can go here
}
# Advance to the infinite loop
set prefix "$i to handler entry"
# Run around to the done
+ # You can add more patterns to this if you need them.
set test "$prefix; resync"
gdb_test_multiple "continue" "$test" {
-re "done = 0.*$gdb_prompt " {
pass "$test"
}
- # other patterns can go here
}
# Advance to the infinite loop
set prefix "$i over handler"
# Run around to the done
+ # You can add more patterns to this if you need them.
set test "$prefix; resync"
gdb_test_multiple "continue" "$test" {
-re "done = 0.*$gdb_prompt " {
pass "$test"
}
- # other patterns can go here
}
# Advance to the infinite loop
set prefix "$i on breakpoint, to handler"
# Run around to the done
+ # You can add more patterns to this if you need them.
set test "$prefix; resync"
gdb_test_multiple "continue" "$test" {
-re "done = 0.*$gdb_prompt " {
pass "$test"
}
- # other patterns can go here
}
gdb_test "break $infinite_loop" "" "$prefix; break infinite loop"
set prefix "$i on breakpoint, to handler entry"
# Run around to the done
+ # You can add more patterns to this if you need them.
set test "$prefix; resync"
gdb_test_multiple "continue" "$test" {
-re "done = 0.*$gdb_prompt " {
pass "$test"
}
- # other patterns can go here
}
gdb_test "break $infinite_loop" "" "$prefix; break infinite loop"
set prefix "$i on breakpoint, skip handler"
# Run around to the done
+ # You can add more patterns to this if you need them.
set test "$prefix; resync"
gdb_test_multiple "continue" "$test" {
-re "done = 0.*$gdb_prompt " {
pass "$test"
}
- # other patterns can go here
}
gdb_test "break $infinite_loop" "" "$prefix; break infinite loop"