Skip to main content

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.

Jump to: navigation, search

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...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Buiding and Running Instructions

To build:

  1. Install Eclipse 3.3 (latest milestone)
  2. Install CDT 4.0 (latest milestone)
  3. Install and configure gdb (cygwin on windows)
  4. 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:

  1. Create a new "Managed make build project" called "hello".
  2. Create a simple hello.c source file:
    #include <stdio.h>
    int main(void) {
        printf("Hello world");
    }
    
  3. Build the project.
  4. Create a new "DSF C/C++ Local Application" launch configuration (one with the pink icon) and set the executable and entry point to "main"
  5. Launch and step through.
  6. If the "source not found" page appears, the a path mapping needs to be created. This is an issue with latest cygwin gdb.
    1. 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"
    2. Click on the "Add..." button
    3. Select "Path Mapping" and click OK.
    4. Select the new "Path Mapping" source container and click the "Edit..." button.
    5. Once again, click the "Add..." button to create a mapping.
    6. 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".
    7. Enter the correct path to the directory entered above, in the file system. In example above, it would be "C:\workspace".
    8. Click OK three times and you'll be back in Kansas.... ehm Debug view that is.
    9. 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
  • Variables
    • not yet

Back to the top