]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/valgrind/src/valgrind-3.6.0-svn/gdbserver_tests/mcinfcallRU.stdinB.gdb
update
[l4.git] / l4 / pkg / valgrind / src / valgrind-3.6.0-svn / gdbserver_tests / mcinfcallRU.stdinB.gdb
1 # connect gdb to Valgrind gdbserver:
2 target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-mcinfcallRU
3 echo vgdb launched process attached\n
4 monitor vg.set vgdb-error 999999
5 #
6 # We will interrupt in a few seconds (be sure all tasks are in
7 # Runnable/Yielding state). We need to wait enough seconds to be sure
8 # Valgrind has started to execute the threads.
9 # On a heavily loaded slow arm gcc compile farm system, 5 seconds
10 # was not enough.
11 shell ./simulate_control_c --vgdb-prefix=./vgdb-prefix-mcinfcallRU 10
12 #
13 continue
14 info threads
15 thread apply all bt full
16 # Would like to call this for all threads with 'thread apply all', but due to unfair scheduling,
17 # the below can either take a long time and/or have threads finished
18 # before they have a chance to execute the whoami
19 # thread apply all
20 print whoami("inferior call pushed from gdb in mcinfcallRU.stdinB.gdb")
21 monitor vg.kill
22 quit