Skip to main content
Jump to: navigation, search


< CDT‎ | Archive
Revision as of 14:56, 5 August 2016 by (Talk | contribs) (Current status)

Full GDB Console

Controlling GDB through the command-line from within Eclipse has long been a very poor experience. With new support in GDB 7.12, it is now much easier for CDT to provide a full-featured GDB console. This feature is planned for CDT 9.2 for Linux hosts.

CDT GDBFullConsole.png

Features of full GDB console

The full GDB console provides the user with an identical GDB command-line experience as if GDB was started on a shell

  1. Command history
  2. Line editing
  3. Tab-completion
  4. Smart command repeating
  5. Full synchronization with the Eclipse GUI

Current status

Development is on-going. The following bugzilla entries and Gerrit reviews are part of this effort:

  1. Bug 303808 - Debug console lacks many important features Patch at
  2. Bug 497166 - Support the user using the 'run' command in the gdb console Patch at
  3. Bug 497167 - Direct IO to an eclipse console for a new process created directly from the gdb console Patch (same as above) at

Trying it out

To try out this feature on Linux:

  1. Get setup for CDT development
  2. Checkout the latest patchset from
  3. Build GDB from its git repo with the branch corresponding to the upcoming release
    1. git clone git://
    2. cd binutils-gdb
    3. git checkout gdb-7.12-branch
    4. mkdir build.console && cd build.console
    5. ../configure CFLAGS="-g3 -O0"
    6. make -j8
  4. Create a launch in Eclipse and point it to the gdb you built in binutils-gdb/build.console/gdb/gdb
  5. Launch as usual

Things to work on

  1. We sometime hit a deadlock when closing the "Debugger console" view and then launching a process using the full console

Back to the top