On Thu, 2012-04-26 at 14:17 -0400, Matt Broadstone wrote:

> and then:
>   (gdb) target remote | /usr/local/bin/vgdb
>   | /usr/local/bin/vgdb: Undefined error: 0
You must have a version of gdb recent enough (I believe >= 6.5)
otherwise GDB does not understand the "|" target.

Two alternatives:
  * compile + install a recent GDB
    (there is a kind of "magic" security signing which is needed).
  * alternatively:
      valgrind --vgdb-error=0 prog
      # and then in another shell, run:
      vgdb --port=1234
      # in a third shell:
      gdb prog
      (gdb) target remote :1234

    (NB: with this technique, there is no security: anybody which
     have access to your system can connect to the vgdb port nr).

Philippe


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to