Eclipse project setup when using gdbserver on a remote target [message #675551] |
Tue, 31 May 2011 16:22  |
Eclipse User |
|
|
|
My setup has a SetTopBox, and Linux PC.
Target SetTopBox: (192.168.1.170)
- Runs a small linux distro, with serial and ethernet connections
- has gdbserver
Linux machine: (192.168.1.110)
- runs NFS
- runs Eclipse
- has the mipsel-linux-gdb utility
I startup the STB, and via the serial port I access the target's filesystem (burned in flash), to configure tcpip connectivity and start a gdbserver.
- ifconfig eth0 192.168.1.170
- mount 192.168.1.110:/nfsexports/App /mnt/nfs
- cd /mnt/nfs
- gdbserver 192.168.1.110:10000 app.out
>> Process app.out created; pid = 263
>> Listening on port 10000
On the Linux machine (192.168.1.110), I want to use Eclipse to debug the app.out now about to be running on the target.
However....
I cannot figure out how to set up the project in Eclipse/CDT: how to configure the project, the debug configurations, etc..... The turorials aren't much use. Can someone please tell me the basics (or the gotcha's) about how to setup this target within the CDT ?
Much appreciated.
|
|
|
Re: Eclipse project setup when using gdbserver on a remote target [message #675770 is a reply to message #675551] |
Wed, 01 June 2011 09:09  |
Eclipse User |
|
|
|
Assuming you are running Helios.
Create a C/C++ project and put the code you want to build. Compile it.
Then go to Run->Debug Configurations...
Create a C/C++ Application launch. At the bottom of any subtab, there will be a hyperlink to "Select other...". A dialog will come up and you should select the GDB (DSF) Remote delegate.
Fill in the IP and port of the remote in the Debugger tab and the project and binary in the Main tab.
That should do it.
Marc
|
|
|
Powered by
FUDForum. Page generated in 0.16226 seconds