Debugging with GDB: Remote Debugging
pid is the process ID of a currently running process. It isn't necessary to point gdbserver at a binary for the running process. On the GDB host machine, you need an unstripped copy of your program, since GDB needs symbols and debugging information. Start...