1. Install Eclipse plugin: Zylin Embedded CDT
Go to Help menu-> Software Updates-> Available Software Add Site
Input HTTP://OPENSOURCE.ZYLIN.COM/ZYLINCDT
Install
2, on the target board running Gdbserver
Gdbserver 192.168.4.244:2345 foo
Where 192.168.4.244 is the remote host's ip,2345 is the port used by the target board. Foo is the executable file to debug.
You can debug a program in an NFS partition directly by mounting an NFS partition so that you avoid copying the program to the target board every time you debug.
3. Configure Zylin
Go to the Run menu-> Debug Configurations-> zylin Embedded Debug (Native)
Create a new Debug configuration
Enter the main tab and select the C + + project to be debugged;
Go to the Debugger tab and select the cross compiled GDB path, for example, my:/opt/nxp/gcc-4.3.2-glibc-2.7/gdb/bin/arm_v5t_le-gdb;
Enter the Commands tab to fill in the IP and port of the target board in the initialization command, such as Target remote 192.168.4.247:2345;
This article from Csdn Blog, reproduced please indicate the source: http://blog.csdn.net/ZatoNeedHelp/archive/2010/08/13/5808291.aspx