1 # connect gdb to Valgrind gdbserver:
2 target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-nlcontrolc
3 echo vgdb launched process attached\n
4 monitor vg.set vgdb-error 999999
7 # simulate control-c in a few seconds
8 shell ./simulate_control_c --vgdb-prefix=./vgdb-prefix-nlcontrolc 10
12 # Here, all tasks should be blocked in a loooonnnng select, all in WaitSys
14 # We will unblock them by changing their timeout argument
15 # To avoid going into the frame where the timeval arg is,
16 # it has been defined as global variables, as the nr
17 # of calls on the stack differs between 32bits and 64bits,
19 # ensure select finishes in a few milliseconds max:
25 # We will change the burning parameters in a few seconds
26 shell ./simulate_control_c --vgdb-prefix=./vgdb-prefix-nlcontrolc 10
30 # Threads are burning cpu now
31 # We would like to test info threads here, but which thread are Runnable or Yielding
38 # and the process should stop very quickly now