Skip to main content

[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

Rohit,
 
I am not sure I understand what you are trying to achieve. As Marc mentioned it's not a problem to add a new MI or CLI command to CDT. The problem is how to call it. Adding a command doesn't make it automatically appear in the UI. You will need to implement new UI components and extend some CDI interfaces or implement your own DSF services to communicate with gdb.
The service oriented architecture of DSF makes this task easier but you still need to write a lot of code.
 
Cheers,
Mikhail

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Rohit Girme
Sent: Sunday, December 06, 2009 7:47 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Adding new MI commands to the gdb/mi interface for integration with CDT

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> 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 [cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Rohit Girme [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
https://dev.eclipse.org/mailman/listinfo/cdt-dev



--
Thanks & Regards,
Rohit Girme


-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

Back to the top