Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
DSDP/DD/DSF SetUp
< DSDP | DD
Revision as of 14:40, 22 March 2007 by Pawel.piech.windriver.com (Talk | contribs) (New page: ==Buiding and Running Instructions== To build: # Install Eclipse 3.3 (latest milestone) # Install CDT 4.0 (latest milestone) # Install and configure gdb (cygwin on windows) # Check out fo...)
Buiding and Running Instructions
To build:
- Install Eclipse 3.3 (latest milestone)
- Install CDT 4.0 (latest milestone)
- Install and configure gdb (cygwin on windows)
- Check out following projects from /cvsroot/dsdp/org.eclipse.dd.dsf/plugins
- org.eclipse.dd.dsf
- org.eclipse.dd.dsf.ui
- org.eclipse.dd.dsf.debug
- org.eclipse.dd.dsf.debug.ui
- org.eclipse.dd.dsf.mi.core
- org.eclipse.dd.dsf.mi.ui.
To run:
- Create a new "Managed make build project" called "hello".
- Create a simple hello.c source file:
#include <stdio.h> int main(void) { printf("Hello world"); }
- Build the project.
- Create a new "DSF C/C++ Local Application" launch configuration (one with the pink icon) and set the executable and entry point to "main"
- Launch and step through.
- If the "source not found" page appears, the a path mapping needs to be created. This is an issue with latest cygwin gdb.
- Click on the "Edit source lookup" button in the editor, or right click on the launch node in Debug View and select "Edit source lookup"
- Click on the "Add..." button
- Select "Path Mapping" and click OK.
- Select the new "Path Mapping" source container and click the "Edit..." button.
- Once again, click the "Add..." button to create a mapping.
- Enter the path to map from. Look at the stack frame label in Debug view, if the filename is something like "/cygdrive/c/workspace/hello/hello.c", enter the path to the first real directory "/cygdrive/c/workspace".
- Enter the correct path to the directory entered above, in the file system. In example above, it would be "C:\workspace".
- Click OK three times and you'll be back in Kansas.... ehm Debug view that is.
- If the source doesn't show up right away, try stepping once.
Supported Platforms
Currently only Windows with cygwin GDB is supported.
Current Features
- Launching
- The "DSF C/C++Local Application" is the standard CDT launch configuration minus some of the features.
- What is NOT working here is
- Debugger tab: the selection of debugger back ends (gdb/mi, Cygwin gdb debugger, etc.), tThe implementation is currently hard-wired for Cygwin,
- Debugger tab: Debugger Options section
- Debug view
- Single thread debugging only.
- Terminating
- Stepping
- Resume/Suspend
- Console support
- GDB process output
- NO user process console support
- Breakpoints
- Basic CDT breakpoint support implemented
- no filtering support,
- no advanced options (hardware, temporary, etc)
- no watchpoints
- Basic CDT breakpoint support implemented
- Variables
- not yet