summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.btrace/non-stop.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.btrace/non-stop.c')
-rw-r--r--gdb/testsuite/gdb.btrace/non-stop.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.btrace/non-stop.c b/gdb/testsuite/gdb.btrace/non-stop.c
index c5870df39d3..b4a7191952a 100644
--- a/gdb/testsuite/gdb.btrace/non-stop.c
+++ b/gdb/testsuite/gdb.btrace/non-stop.c
@@ -27,7 +27,9 @@ test (void *arg)
i = 0; /* bp.1 */
for (; i < 10; ++i) global += i; /* loop */
- return arg; /* bp.2 */
+ global *= 2; /* bp.2 */
+
+ return arg; /* bp.3 */
}
int
@@ -41,5 +43,5 @@ main (void)
pthread_join (th, NULL);
- return 0; /* bp.3 */
+ return 0;
}