• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 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
21