Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Extension point to contribute gdb command factories

Hi,
 
As a first step of the implementation of https://bugs.eclipse.org/bugs/show_bug.cgi?id=114793 the new "org.eclipse.cdt.debug.mi.core.commandFactories" extension point is added to the "org.eclipse.cdt.debug.mi.core" plugin.
With this feature, clients can replace the standard gdb/mi command set by the command sets for various gdb modifications. A good example is gdb for MacOS with it's modified mi protocol. The CLI commands like "info shared libraries" may vary for different OS's and instead of trying to cover all known versions in one implementation we will use different command factories.
In order to make the transition smoother, the new debugger type ("gdb/mi") is implemented. This implementation will eventually replace the current "gdb debugger" and "CygWin gdb debugger" types.
The debugger's page of the launch configuration dialog contains the list of available command factories. Two command factory extensions are implemented to support "standard" (MinGW) and "CygWin" debugging for Windows as well as the standard command factory for Linux. I hope, others will follow.
Some minor refactoring was required that may affect other implementations. As a result, the old implementation of the CygWin command factory and the related classes are moved to the new packages (org.eclipse.cdt.debug.mi.core.command.factories.*). 
Comments and suggestions will be appreciated.
 
Mikhail Khodjaiants
QNX Software Systems
 

Back to the top