blob: 0d32962ad5ed680eb0d99b6be92fab6a75fc825f [file] [log] [blame]
philippe07c08522014-05-14 20:39:27 +00001# connect gdb to Valgrind gdbserver:
2target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-hginfo
3echo vgdb launched process attached\n
4monitor v.set vgdb-error 999999
5#
6#
7# insert break:
8break breakme
9#
10# continue till each break and execute via gdb the monitor commands
11# ptr must be allocated at this state:
12continue
13monitor info locks
14eval "monitor v.info location %p", ptr
15# ptr must be freed at this state
16continue
17monitor info locks
18eval "monitor v.info location %p", ptr
19continue
20quit