[http://www.lvr.com/eclipse5.htm This] may be a better starting place.

+

+

== YouTube Video ==

+

+

[http://www.youtube.com/watch?v=vFv_-ykLppo&list=UUf_sAmhBw7Tj7-2ujmLFoQg&index=4&feature=plcp Here] is a video that says it will show how to use Eclipse for remote debugging.

+

+

[http://download.eclipse.org/tm/downloads/drops/R-3.4-201205300905/ Here] is where you get the RSE-runtime.

+

+

host$ '''sudo apt-get update'''

+

host$ '''sudo apt-get install eclipse'''

+

host$ '''sudo apt-get install gcc-arm-linux-gnueabi'''

+

host$ '''sudo apt-get install g++-arm-linux-gnueabi'''

+

host$ '''sudo apt-get install gdb'''

+

host$ '''sudo apt-get install gdb-multiarch'''

+

+

beagle$ '''opkg update'''

+

beagle$ '''opkg install gdbserver'''

= Work in Progress =

= Work in Progress =

Line 126:

Line 146:

* Click: Debug (bottom right)

* Click: Debug (bottom right)

[[File:Eclipse - Debug.png|300px]]

[[File:Eclipse - Debug.png|300px]]

−

It should compile your file (if needed), copy it to the Beagle and start gdb on it. It will run up to main() and wait for your input. Try the single step button (F6 step over, F5 step into)

−

Be sure to hit Terminate (Ctrl-F2) when done.

+

It should compile your file (if needed), copy it to the Beagle and start gdb on it. However I haven't been able to make it work.

−

Add a for loop and watch the index variable change!

+

'''Fix:''' The first time you try to select the Remote Absolute File Path for C/C++ Application you haven't uploaded the binary file to the Beagle. Hence you cannot select it via the dialogue. Once you clicked the "Debug" button you can re-open the dialogue and select the binary or you can manually complete the line to "/home/MyUsername/workspace/HelloWorld/Debug/HelloWorld".

−

== Other ==

+

Back when I had this working, it will run up to <code>main()</code> and wait for your input. Try the single step button (F6 step over, F5 step into)

−

This is taken from: http://www.ibm.com/developerworks/opensource/library/os-eclipse-stlcdt/index.html

+

Be sure to hit Terminate (Ctrl-F2) when done.

−

You might be able to do this via apt-get install. I used the add/remove program app in Red Hat and selected Fedora Eclipse. It appears to load lots of things.

+

Add a for loop and watch the index variable change!

−

This load version 3.4.1

+

−

+

−

In Ubuntu go to Applications: Add/Remove

+

−

Select Show: All available applications

+

−

Search: eclipse

+

−

Check: Eclipse

+

−

Click: Apply Changes

+

−

Wait for some 113 files to download (15 minutes on a fast connection)

+

−

With this install you need to load a few more things. Go to

+

−

Help:Software Updates:Find and Install...

+

−

Select: Search for new features to install

+

−

Select: Callisto Discovery Site

+

−

Click: Finish (wait a moment)

+

−

Select a site near you (wait a moment)

+

−

Expand: Callisto Discovery Site

+

−

Select: C and C++ Development

+

−

Next, Accept, Next, Finish (wait)

+

−

+

−

This loads version 3.2.2

+

−

+

−

+

−

#### Install the c/c++ stuff

+

−

Select: Help:Software Updates

+

−

Tab: Available Software

+

−

Expand: Ganymede Update Site

+

−

Check: C and C++ Development

+

−

Click: Install

+

−

Expand: Remote Access and Device Developement

+

−

Check: Remote System Explorer C/C++ Remote Debugger Launcher

+

−

Check: Remote System Explorer End-User Runtime

+

−

Click: Install

+

−

Click: Next

+

−

Click: I accept...

+

−

Click: Finish

+

−

+

−

##### Fedora #####

+

−

I did see the Canymede Update Site on Fedora, so I

+

−

Select: Help:Software Updates

+

−

Tab: Available Software

+

−

Click: Add Site

+

−

Location: http://download.eclipse.org/releases/ganymede

+

−

Click: OK

+

−

The Available Software list should update nad "Ganymede Update Site" should appear. The follow the instructions above.

+

−

+

−

##### #####

+

−

+

−

Start Eclipse

+

−

Select: File:New:Project...

+

−

Expand: C

+

−

Select: C Project

+

−

Click: Next

+

−

Project Name: HelloWorld (no spaces)

+

−

Select: Hello World ANSI C Project

+

−

Click: Next

+

−

Fill in to suit, Click: Next

+

−

Click: Finish

+

−

Tab: C/C++ Projects

+

−

Expand: HelloWorld

+

−

Expand: src

+

−

Expand: HelloWorld.c

+

−

Double-Click: main(void) The file will open in a window

+

−

+

−

This will create an executable that runs on the Ubuntu Linux (guest) platform.

It should compile your file (if needed), copy it to the Beagle and start gdb on it. However I haven't been able to make it work.

Fix: The first time you try to select the Remote Absolute File Path for C/C++ Application you haven't uploaded the binary file to the Beagle. Hence you cannot select it via the dialogue. Once you clicked the "Debug" button you can re-open the dialogue and select the binary or you can manually complete the line to "/home/MyUsername/workspace/HelloWorld/Debug/HelloWorld".

Back when I had this working, it will run up to main() and wait for your input. Try the single step button (F6 step over, F5 step into)