Comprehensive Ada Toolsuite

GNATbench – Ada Development Plug-In for Eclipse and Wind River Systems Workbench

GNATbench, the GNAT Pro Ada plug-in for Eclipse, brings the advantages of AdaCore's GNAT Pro toolset to the Eclipse development environment framework. GNATbench provides the functionality and capabilities one expects from the Eclipse IDE with the standard look and feel that facilitates learning and ease of use.

GNATbench supports both stand-alone Eclipse and Workbench, the Wind River Systems (WRS) extension to Eclipse for embedded systems development. The Workbench integration supports Ada development using the numerous kinds of VxWorks real-time operating systems provided by WRS. The stand-alone version is primarily for native development but also supports cross development (except for VxWorks development, in which Workbench use is intended). In both cases the Ada tools are tightly integrated.

Outline View

GNATbench supports the standard Outline view, offering a high-level view of the Ada source code to facilitate program comprehension and development. Selecting an entry in the Outline will take you to the corresponding location in the source file editor.

Problems View

GNATbench supports the standard Problems view, in which warnings and errors from the tools are indicated. These indications are interactive, opening the corresponding resource when selected. GNATbench supports the Problems view with all appropriate GNAT tools.

Ada Language-Specific Editor

An Ada-specific editor supplements the basic Eclipse editor with a number of capabilities including syntax coloring, parentheses highlighting, block folding, automatic indentation and automatic casing, and other features. All versions of Ada are supported, from Ada 83 to Ada 2012.

Quick Fix

The language-sensitive editor may be able to propose corrections for syntax and semantics problems identified by the GNAT compiler. This possibility is indicated by an icon in the editor marker bar, opposite the source line containing the problem. Invoking Quick Fix automatically applies the selected correction to the source code.

Automatic Code Completion

"Code Assist" is an Eclipse editing capability that completes identifiers based on semantic analysis and context. GNATbench implements Code Assist for all versions of Ada. Simple identifiers, subprogram formal parameters, and entities named using the "dot notation" are candidates for completion.

Code Browsing and Navigation

You can traverse the code by treating any name as a hyperlink within the editor. Given an existing identifier, you may visit the corresponding declaration or body. Hovering the mouse cursor over an entity in the Ada editor causes the profile and documentation to appear in a tooltip. A global search can display all references in a search results window. Selecting one of these references then takes you to the corresponding file.

Workbench Specific Features

The GNATbench Ada builder is integrated with the Workbench builder so that Ada code is automatically compiled and included when an entire system is built, including mixed-language builds. Any errors are displayed in the standard Workbench Problems view and are traversable in standard fashion.

The embedded systems debugger is automatically provided by Wind River with Workbench, and can debug Ada source code along with code written in other supported languages.

Stand-alone Eclipse Specific Features

The stand-alone version of GNATbench provides a dedicated builder for building systems written in Ada. Errors and warnings are indicated in the Problems view, as usual. Individual files may be compiled as well. Native as well as cross GNAT compilers are supported.

For debugging, the stand-alone version enhances the C/C++ Development tools (CDT) graphical debugger interface for Ada-specific constructs, such as tasks, and is fully Ada-aware using an enhanced GDB debugger engine provided by GNAT.

Interoperability with GPS

Ada developers, whether using GNAT projects for stand-alone Eclipse or Wind River Workbench, can also use the GNAT Programming Studio (GPS) on those projects without requiring a change to project definition or organization.

Knowledge Center


  • GNATbench 2.1

    June 17, 2008

    AdaCore has recently introduced GNATbench 2.1.0. This release introduces many new features including project management and presentation enhancements, language-sensitive editor enhancements, additional wizards, builder enhancements, and source code navigation enhancements. This webinar will describe and demo some of the new features introduced in 2.1.0. As always, we will allow a question and answer session at the end enabling you to talk directly with the designers of GNATbench.
  • Eclipse

    November 08, 2007

    Open standards COTS products come together to streamline safety-critical and OEM embedded development. Eclipse has promised tools can plug in and work together, and we’ll see concrete examples in this live event. Telelogic, AdaCore, and LynuxWorks are utilizing the power of the open Eclipse framework to help integrate and streamline the process from design to deployment.

    Hear Telelogic explain how Rhapsody, a UML design tool, and DOORS, the industry standard requirements tool, are taking advantage of Eclipse to provide an easy path from design to code. AdaCore introduces their Eclipse-based GNATbench and GNAT Pro tool set that brings both Ada and C/C++ code together, integrating with the leading safety critical open-standards based RTOS – LynxOS-178. LynuxWorks shows how their Luminosity tool suite continues the common look and feel of Eclipse, to help build, test and deploy safety critical systems.

Live Docs

  • GNATbench for WRS Workbench User’s Guide »

    This User’s Guide describes how to use the GNATbench Ada plug-in for Windriver Workbench . Specific help is provided for configuring projects, building systems, and debugging.

  • GNATbench for Eclipse User’s Guide »

    This User’s Guide describes how to use the GNATbench Ada plug-in for Eclipse. Specific help is provided for configuring projects, building systems, and debugging.

Development Log

Press Releases

In the Press