Remote Debugging using gdbserver

remote debugging using gdb is the trickiest of all forms of live debugging, it needs two instances of gdb - gdbserver and gdb client running in parallel.