sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame^] | 1 | # connect gdb to Valgrind gdbserver: |
| 2 | target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-mcinfcallWSRU |
| 3 | monitor vg.set vgdb-error 999999 |
| 4 | # |
| 5 | # ensure all threads are known |
| 6 | break sleeper_or_burner |
| 7 | continue |
| 8 | continue |
| 9 | continue |
| 10 | continue |
| 11 | # |
| 12 | # Here the 4 threads have been started. |
| 13 | # We will interrupt in a few seconds (be sure all tasks are in Runnable/Yielding state |
| 14 | # or in WaitSys state. |
| 15 | shell ./simulate_control_c --vgdb-prefix=./vgdb-prefix-mcinfcallWSRU 10 |
| 16 | # |
| 17 | continue |
| 18 | # |
| 19 | thread 1 |
| 20 | print whoami("thread 1 inferior call pushed from gdb in mcinfcallWSRU.stdinB.gdb") |
| 21 | thread 2 |
| 22 | print whoami("thread 2 inferior call pushed from gdb in mcinfcallWSRU.stdinB.gdb") |
| 23 | thread 3 |
| 24 | print whoami("thread 3 inferior call pushed from gdb in mcinfcallWSRU.stdinB.gdb") |
| 25 | thread 4 |
| 26 | print whoami("thread 4 inferior call pushed from gdb in mcinfcallWSRU.stdinB.gdb") |
| 27 | monitor vg.kill |
| 28 | quit |