[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Adding new MI commands to the gdb/mi interface for integration with CDT
|
Hi,
Take a look at the packages in the org.eclipse.cdt.debug.mi.core plug-in
org.eclipse.cdt.debug.mi.core.command contains the commands and the
command set factory (CommandFactory class). I think you have to modify
the CommandFactory and add you own command in this package.
There are factories which makes it easy to override existing commands
but I don't think it would be useful to you since you'd still have to
modify CommandFactory and add a generic MIReplay class doing nothing. If
you want to do this then you would do a separate package (like linux,
macos and win32) and you would create your own factory extending
StandardCommandFactory, create a Replay class extending the generic one
(but with useful code this time) and add a commandFactory extension in
plugin.xml. You could also create your own plug-in containing your
factory and the Replay class and still use the commandFactory extension
point.
You would still need to call it somewhere...
I don't know CDI all that much so maybe someone has a better suggestion?
Marc-Andre
Rohit Girme wrote:
Hi,
I have been able to interface gdb with CDT using CDI. Now I want to
add a new MI command corresponding to the new CLI command I have
added. Then I can use this in Eclipse. But I cannot find any
documentation for adding new commands to the gdb/mi interface.
Thanks,
Rohit
On Sun, Dec 6, 2009 at 11:51 AM, Marc Khouzam
<marc.khouzam@xxxxxxxxxxxx <mailto:marc.khouzam@xxxxxxxxxxxx>> wrote:
Hi,
there are now two GDB integration is CDT. The orginal one (CDI),
and the new one (DSF-GDB).
First, you will have to choose which one you want to use. Very
little work is being done in CDI and there
are no big plans for the future. DSF-GDB is more active, and
already has support for a lot of the latest GDB features.
Either way, adding a new MI command is not difficult, but then
you'll have to call is somewhere (which shouldn't be too
bad either :-)).
In DSF-GDB, look for an example command like MIBreakInsert
Marc
P.S. DSF-GDB supports Process Record Replay from GDB 7.0, in case
your 'replay' is related to that.
________________________________________
From: cdt-dev-bounces@xxxxxxxxxxx
<mailto:cdt-dev-bounces@xxxxxxxxxxx> [cdt-dev-bounces@xxxxxxxxxxx
<mailto:cdt-dev-bounces@xxxxxxxxxxx>] On Behalf Of Rohit Girme
[rgirme@xxxxxxx <mailto:rgirme@xxxxxxx>]
Sent: December 6, 2009 1:46 AM
To: CDT General developers list.
Subject: [cdt-dev] Adding new MI commands to the gdb/mi interface
for integration with CDT
Hi,
I have added a new feature/command in gdb called 'replay'. It
doesnt matter what exactly replay does. Now I am trying to
integrate this 'replay' with CDT. I will first have to add a new
MI command for the gdb/mi interface.
Does anyone know anything about this?
Let me know if you need any more information.
--
Thanks & Regards,
Rohit Girme
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx <mailto:cdt-dev@xxxxxxxxxxx>
https://dev.eclipse.org/mailman/listinfo/cdt-dev
--
Thanks & Regards,
Rohit Girme
------------------------------------------------------------------------
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev