Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse project setup when using gdbserver on a remote target(How-to: use gdbserver on remtoe target)
Eclipse project setup when using gdbserver on a remote target [message #675551] Tue, 31 May 2011 16:22 Go to next message
Stephen  is currently offline Stephen
Messages: 1
Registered: May 2011
Junior Member
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 Go to previous message
Marc Khouzam is currently offline Marc Khouzam
Messages: 272
Registered: July 2009
Senior Member
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
Previous Topic:[Solved] Unable to remotely cross debug application
Next Topic:Extend the C/C++ Perspective
Goto Forum:
  


Current Time: Tue Jul 29 23:02:24 EDT 2014

Powered by FUDForum. Page generated in 0.01766 seconds