Skip to main content

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

Hi Mikhail,

I am trying to build my 3.1.2 eclipse based plug-ins on 3.2M6. The
plug-ins include a cross GDB (Cygwin based) support plug-in. 

As the command factory concept was part of 3.2M6 my debug plug-in
started giving me error. 
I am using the CygwinCommandFactory and so I just changed the package
name to appropriate
(org.eclipse.cdt.debug.mi.core.command.factories.win32). But it seems
only I can access the topmost folder i.e. till factories.* and it gives
me access restriction error for CygwinCommandFactory. 

Even I tried adding the new extension point but as the class I am
referring is the CygwinCommandFactory of
*debug.mi.core.command.factories.win32.* I was not able to access it. 
I want the same functionality as implemented in the above factory and so
don't want to repeat it in my plug-in.

Is this the right way to access the command factories or am I doing it
wrongly. 

Please help me to sort this out.
Thanks in advance.

Regards,
Rekha

-----Original Message-----
Date: Mon, 6 Feb 2006 17:18:47 -0500
From: "Mikhail Khodjaiants" <mikhailk@xxxxxxx>
Subject: [cdt-debug-dev] Extension point to contribute gdb command
	factories
To: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>,	"CDT
Debug
	developers list" <cdt-debug-dev@xxxxxxxxxxx>
Message-ID: <009c01c62b6b$550035d0$24632a0a@MIKHAILKLAPTOP>
Content-Type: text/plain; charset="iso-8859-1"

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