If I remote debug using gdb
I connect to the gdbserver
using
target remote host:2345
If I debug memory errors with valgrind and gdb (to break on invalid memory access) I use
target remote | vgdb
(after starting
valgrind --track-origins=yes --vgdb=yes --vgdb-error=0 [binary]
on the local machine)
Can I combine the two to debug memory errors on a remote machine?
Note that I want to avoid using a login shell on the remote machine to work there.