blob: 08a149b2712399b1fd5e3a0e8372321b5182d7bd [file] [log] [blame]
sewardj3b290482011-05-06 21:02:55 +00001# connect gdb to Valgrind gdbserver:
2target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-mcinfcallRU
3monitor 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.
10shell ./simulate_control_c --vgdb-prefix=./vgdb-prefix-mcinfcallRU 10
11#
12continue
13info threads
14thread 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
19print whoami("inferior call pushed from gdb in mcinfcallRU.stdinB.gdb")
20monitor vg.kill
21quit