Notes on setting up RTEMS GDB in Eclipse
- Follow https://confluence.slac.stanford.edu/display/LCLSControls/LCLS+How-to+Setup+the+RTEMS+Debugger
- Make sure you have an Eclipse project that contains the source code and binary you want to debug
- In Eclipse, select the binary to be debugged (e.g. bin/RTEMS-beatnik/rtemsUtilsSup.obj)
- Select Run -> Debug Configurations
- In the "Debug Configurations" window that pops up, Click on C/C++ Remote Application
- Click the icon that looks like a blank sheet of paper with a + on it, in the uppper left corner
- Give your project a name.
- At the bottom of the screen, click on "Select", which may be preceded by "Using GDB(DSF) Automatic...."
- Click the box next to "Use configuration specific settings"
- Select "GDB (DSF) Manual Remote Debugging Launcher", and click Ok.
- Select the "Debugger" tab.
- Uncheck "Stop on startup..."
- For "GDB Debugger" put /afs/slac.stanford.edu/package/rtems/vol12/4_9_3/host/i386_linux2x/bin/powerpc-rtems-gdb
- Still under the Debugger tab, select the "Connection" tab. Fill in the IOC host name, and port 2159
- Switch to the Debug perspective (Window -> Open Perspective -> Debug)
- Click the bug icon, or the dropdown menu next to it to select what to debug
- It won't load the list of running threads until you click the pause button icon (Suspend) to break execution.
{"serverDuration": 47, "requestCorrelationId": "fcaff317b8038606"}