blob: ffb122f224bba829e378f9fff764d725b6c16e3a [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
sewardjeefeeb72011-05-10 11:01:07 +00003echo vgdb launched process attached\n
sewardj30b3eca2011-06-28 08:20:39 +00004monitor v.set vgdb-error 999999
sewardj3b290482011-05-06 21:02:55 +00005#
sewardj76291802011-05-31 07:09:06 +00006# We will interrupt in a few seconds (be sure the main task is ready).
7# Once it is ready, we still have to wait to be sure it is running.
8shell ./simulate_control_c --vgdb-prefix=./vgdb-prefix-mcinfcallRU 1 grep main mcinfcallRU.stderr.out
sewardj3b290482011-05-06 21:02:55 +00009#
10continue
11info threads
12thread apply all bt full
13# Would like to call this for all threads with 'thread apply all', but due to unfair scheduling,
14# the below can either take a long time and/or have threads finished
15# before they have a chance to execute the whoami
16# thread apply all
17print whoami("inferior call pushed from gdb in mcinfcallRU.stdinB.gdb")
sewardj30b3eca2011-06-28 08:20:39 +000018monitor v.kill
sewardj3b290482011-05-06 21:02:55 +000019quit