Home | History | Annotate | Download | only in gdbserver_tests
      1 # connect gdb to Valgrind gdbserver:
      2 target remote | ./vgdb --wait=60 --vgdb-prefix=./vgdb-prefix-hginfo
      3 echo vgdb launched process attached\n
      4 monitor v.set vgdb-error 999999
      5 #
      6 #
      7 # insert break:
      8 break breakme
      9 #
     10 # continue till each break and execute via gdb the monitor commands
     11 # ptr must be allocated at this state:
     12 continue
     13 monitor info locks
     14 eval "monitor v.info location %p", ptr
     15 # ptr must be freed at this state
     16 continue
     17 monitor info locks
     18 eval "monitor v.info location %p", ptr
     19 continue
     20 quit
     21