This Video help you to understand the remote debugging setup process using eclipse and gdbserver and you can use the same for any linux box which can be raspberry pi/beagle bone.
Video Link: How to setup arm toolchain in eclipse:
• Setup Eclipse For ARM Cross Compilation
1- Install Gdbmultiarch on Ubuntu Machine
sudo apt-get install gdb-multiarch
2- Install Remote System View Plugin on Eclipse
3- Install GDBserver on Raspberry Pi
Download From: https://github.com/sunil7620/GPIO-Tog...
4- Copy this on Raspberry
scp gdbserver_7.7.1%2Bdfsg-5_armhf.deb pi@IPADDRESS:~
5- Install GDBserver:
dpkg -i gdbserver_7.7.1%2Bdfsg-5_armhf.deb
6- Run Your Binary using GDB Server
gdbserver localhost:10000 Helloworld