Skip to main content

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 20:22 Go to next message
Stephen  is currently offline Stephen Friend
Messages: 1
Registered: May 2011
Junior Member
My setup has a SetTopBox, and Linux PC.

Target SetTopBox: (
- Runs a small linux distro, with serial and ethernet connections
- has gdbserver

Linux machine: (
- 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
- mount /mnt/nfs
- cd /mnt/nfs
- gdbserver app.out

>> Process app.out created; pid = 263
>> Listening on port 10000

On the Linux machine (, I want to use Eclipse to debug the app.out now about to be running on the target.


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 13:09 Go to previous message
Marc Khouzam is currently offline Marc KhouzamFriend
Messages: 357
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.

Previous Topic:[Solved] Unable to remotely cross debug application
Next Topic:Extend the C/C++ Perspective
Goto Forum:

Current Time: Sun May 20 15:43:29 GMT 2018

Powered by FUDForum. Page generated in 0.01996 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top