sewardj | 2a31239 | 2011-06-26 09:26:48 +0000 | [diff] [blame] | 1 | # connect gdb to Valgrind gdbserver: |
| 2 | target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-mcmain_pic |
| 3 | echo vgdb launched process attached\n |
Elliott Hughes | ed39800 | 2017-06-21 14:41:24 -0700 | [diff] [blame] | 4 | source mcmain_pic.heur |
sewardj | 30b3eca | 2011-06-28 08:20:39 +0000 | [diff] [blame] | 5 | monitor v.set vgdb-error 999999 |
sewardj | 2a31239 | 2011-06-26 09:26:48 +0000 | [diff] [blame] | 6 | # |
| 7 | # break |
sewardj | 8eb8bab | 2015-07-21 14:44:28 +0000 | [diff] [blame] | 8 | break main_pic.c:12 |
sewardj | 2a31239 | 2011-06-26 09:26:48 +0000 | [diff] [blame] | 9 | # |
| 10 | continue |
| 11 | # first break encountered. |
| 12 | print another_func("called from gdb") |
| 13 | # |
| 14 | print &main |
| 15 | print &another_func |
| 16 | continue |
| 17 | quit |