In the remote target:
target> gdbserver localhost:1234 <application>
On the host (collector):
host> gdb <application>
Note that the target can be removed from the characters. But the host can have all characters.
gdb> set <path-to-libs-search>
gdb> target remote <target-ip>:1234
gdb> break main
gdb> cont
, GDB - . ( SlickEdit eclipse).