CDT 4.0 - New and Noteworthy

CDT 4.0 includes new features in the editor, new code navigation tools, debugger enhancements, and other improvements.
Projects

New Project Creation

Now it's easier to create and configure a new CDT project:

Project Templates

Projects can be created from one of the available templates. Project templates include wizard pages that let you configure basic settings for new project code.

Editor

Code Folding

Now you can collapse and expand blocks of comments and code in C and C++ files.

The same code folded up:

Code Folding Options:

Code Navigation Views

Include Browser

The Include Browser now lets you see the hierarchy of included headers in a source file.

Call Hierarchy

The Call Hierarchy view shows you who calls a function.

Type Hierarchy

The Type Hierarchy view shows you how C/C++ types are related.

Indexer Improvements

The indexer is greatly improved with more features and accuracy:

Debugger

GDB Hardware Debugging

The GDB Hardware Debugging feature provides a specialized debug launch configuration that allows you to start up GDB using CDT's GDB integration in a specialized manner that allows for sessions that connect to hardware debugging devices, such as JTAG and BDM, that support an integration with GDB. In particular it allows you to specify commands that are executed when GDB connects to the device, optionally specify an image to load onto the target, and specify commands that set up the target for execution.

Breakpoint Actions

You can now attach actions to a breakpoint. These are additional activities performed when a breakpoint is hit. CDT 4.0 comes with four standard actions that: play a sound, log text to an expression to the console, resume execution, or run an external tool.

 

Contextual Launch Support

CDT 4.0 now takes advantage of the contextual launch support in Eclipse 3.3 to make the run and debug commands just "do the right thing" for C/C++ projects.

Just click the Debug button to start a debug session instead of manually creating a launch configuration.

Locating Source Files

When the debugger can't find a source file using the path in the symbol table it now lets you locate it directly instead of having to configure a source lookup path.

 

Other Improvements

Project Build Button

The toolbar now includes a button that builds the active configuration of the selected project. It's menu lets you quickly build another configuration.

MinGW Toolchain Integration

Support for the GNU toolchain on Windows now specifies two separate toolchains Cygwin and MinGW. The MinGW toolchain integration automatically detects the location of your MinGW install and sets the paths appropriately.

MinGW tool chain for new projects:

MinGW debugger launch configuration:

IBM xlC Toolchain Integration

xlc and xlC toolchain integration is available. When you create a new project, select one of the XLC project types.

xlC compiler options:

Task Tags

The Task View now includes entries based on tags in your C/C++ source files.

Task Tag options: