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-mcinfcallRU |
| 3 | monitor vg.set vgdb-error 999999 |
| 4 | # |
| 5 | # We will interrupt in a few seconds (be sure all tasks are in |
| 6 | # Runnable/Yielding state). We need to wait enough seconds to be sure |
| 7 | # Valgrind has started to execute the threads. |
| 8 | # On a heavily loaded slow arm gcc compile farm system, 5 seconds |
| 9 | # was not enough. |
| 10 | shell ./simulate_control_c --vgdb-prefix=./vgdb-prefix-mcinfcallRU 10 |
| 11 | # |
| 12 | continue |
| 13 | info threads |
| 14 | thread apply all bt full |
| 15 | # Would like to call this for all threads with 'thread apply all', but due to unfair scheduling, |
| 16 | # the below can either take a long time and/or have threads finished |
| 17 | # before they have a chance to execute the whoami |
| 18 | # thread apply all |
| 19 | print whoami("inferior call pushed from gdb in mcinfcallRU.stdinB.gdb") |
| 20 | monitor vg.kill |
| 21 | quit |