Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Communication between Eclipse UI and gdb

Hi Rohit,

This may help you. We had to modify the default CDI MI command factory for Cygwin to show the program output in a new console by default (due to problems with gdb commands and program outputs). You may want to have a look at that code (which you can found at http://sourceforge.net/projects/pascaline).

Specifically, have a look at the net.sef.pascaline.cdtinterface plug-in. We use the extension point org.eclipse.cdt.debug.mi.commandFactories to provide a command factory that extends StandardWinCommandFactory (which is the one used with Cygwin) and simply overrides createMIGDBSetNewConsole() to open a new console by default.

We didn't have to provide a new menu item or so. We are integrated within the Debug As... through the CDT launcher. We just define our launch shortcut (FreePascalApplicationLaunchShortcut) which is a slightly modified version of CApplicationLaunchShortcut. Within this class we bind the launcher with the command factory (search for this comment: // On windows we override the defaults to set our CommandFactory). Maybe you can set at this point the command factory for your tool.

Hope it helps,
Patxi.

On Sat, Sep 5, 2009 at 2:44 AM, Rohit Girme <rgirme@xxxxxxx> wrote:
Hello John,

Actually I have added some new functionality to the existing GNU debugger. I want to add some buttons in the Eclipse menu which will call these functions. Just like exisiting Debug button calls the current gdb.
Any suggestions on how I should go about it?

Thanks a lot ..you have helped me clear some concepts..

Rohit


On Fri, Sep 4, 2009 at 3:09 PM, John Cortell <john.cortell@xxxxxxxxxxxxx> wrote:
There is a gdb/mi CDI reference implementation included with CDT. There is also one based on DSF. All the code in CDT is available to you, as it's all open source.

John


At 05:06 PM 9/4/2009, Rohit Girme wrote:
Hello,

Is there any existing plugins being used to interface GNU debugger with Eclipse using CDI? Is there any way I can have a look at the code so I can use it as a reference?

Thanks,
Rohit
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top