gdb_test "break ${testcase}.c:${bp_location}" \
"Breakpoint \[0-9\]+ at 0x\[0-9a-fA-F\]+: .*" \
"breakpoint to the STOP marker"
-gdb_test "continue" \
- "Breakpoint \[0-9\]+, increment .*" \
- "continue to the STOP marker"
+with_test_prefix "stop at first iteration" {
+ gdb_test "continue" \
+ "Breakpoint \[0-9\]+, increment .*" \
+ "continue to the STOP marker"
-# Check we get correct values for both local and non-local variable references.
-
-gdb_test "print c" "102 'f'"
-gdb_test "print count" "0"
+ # Check we get correct values for both local and non-local variable references.
+ gdb_test "print c" "102 'f'"
+ gdb_test "print count" "0"
+}
# Same but a little later: make sure we were looking at the proper places.
-
-gdb_test "continue" \
- "Breakpoint \[0-9\]+, increment .*" \
- "continue to the STOP marker"
-gdb_test "print c" "111 'o'"
-gdb_test "print count" "1"
+with_test_prefix "stop at second iteration" {
+ gdb_test "continue" \
+ "Breakpoint \[0-9\]+, increment .*" \
+ "continue to the STOP marker"
+ gdb_test "print c" "111 'o'"
+ gdb_test "print count" "1"
+}