1prepare_target -wait
2D // delete all breakpoints
3b thread_0_entry#11 // set a breakpoint in the thread_0 loop
4c // continue
5wait -stop // wait until stopped
6p /x thread_0_counter
7p /x thread_1_counter
8p /x thread_2_counter
9p /x thread_3_counter
10p /x thread_4_counter
11p /x thread_5_counter
12p /x thread_6_counter
13p /x thread_7_counter
14c
15wait -stop
16c
17wait -stop
18c
19wait -stop
20c
21wait -stop
22c
23wait -stop
24p /x thread_0_counter
25p /x thread_1_counter
26p /x thread_2_counter
27p /x thread_3_counter
28p /x thread_4_counter
29p /x thread_5_counter
30p /x thread_6_counter
31p /x thread_7_counter
32savedebugpane cmd test.log
33quit force // exit unconditionally
34