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 |
sewardj | eefeeb7 | 2011-05-10 11:01:07 +0000 | [diff] [blame] | 3 | echo vgdb launched process attached\n |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 4 | monitor vg.set vgdb-error 999999 |
| 5 | # |
| 6 | # ensure all threads are known |
| 7 | break sleeper_or_burner |
| 8 | continue |
| 9 | continue |
| 10 | continue |
| 11 | continue |
| 12 | # |
| 13 | # Here the 4 threads have been started. |
| 14 | # We will interrupt in a few seconds (be sure all tasks are in Runnable/Yielding state |
| 15 | # or in WaitSys state. |
sewardj | 7629180 | 2011-05-31 07:09:06 +0000 | [diff] [blame^] | 16 | shell ./simulate_control_c --vgdb-prefix=./vgdb-prefix-mcinfcallWSRU 1 grep main mcinfcallWSRU.stderr.out |
sewardj | 3b29048 | 2011-05-06 21:02:55 +0000 | [diff] [blame] | 17 | # |
| 18 | continue |
| 19 | # |
| 20 | thread 1 |
| 21 | print whoami("thread 1 inferior call pushed from gdb in mcinfcallWSRU.stdinB.gdb") |
| 22 | thread 2 |
| 23 | print whoami("thread 2 inferior call pushed from gdb in mcinfcallWSRU.stdinB.gdb") |
| 24 | thread 3 |
| 25 | print whoami("thread 3 inferior call pushed from gdb in mcinfcallWSRU.stdinB.gdb") |
| 26 | thread 4 |
| 27 | print whoami("thread 4 inferior call pushed from gdb in mcinfcallWSRU.stdinB.gdb") |
| 28 | monitor vg.kill |
| 29 | quit |