Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* How to implement GDB MI command in Python?
@ 2014-04-14  7:35 Raphael Zulliger
  2014-04-14 10:33 ` Phil Muldoon
  0 siblings, 1 reply; 2+ messages in thread
From: Raphael Zulliger @ 2014-04-14  7:35 UTC (permalink / raw)
  To: gdb

Hi

I'm using Python to extend GDB by new commands. This works fine. Now I'd 
like to call these commands from within Eclipse/CDT. Because GDB 
supports CLI command in MI-mode, I can call my Python functions by CLI. 
BUT It would be better, IMHO, to use MI commands, especially for 
GDB/Python commands that return status information and errors.

According to my research, it's not possible to create MI commands by 
Python. My questions:
  - Is this correct?
  - If it's correct: Why is that the case? Has it simply not been 
implemented or are there technical issues/limitations?

Thanks
Raphael


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to implement GDB MI command in Python?
  2014-04-14  7:35 How to implement GDB MI command in Python? Raphael Zulliger
@ 2014-04-14 10:33 ` Phil Muldoon
  0 siblings, 0 replies; 2+ messages in thread
From: Phil Muldoon @ 2014-04-14 10:33 UTC (permalink / raw)
  To: Raphael Zulliger, gdb

On 14/04/14 07:24, Raphael Zulliger wrote:
> Hi
>
> I'm using Python to extend GDB by new commands. This works fine. Now I'd like to call these commands from within Eclipse/CDT. Because GDB supports CLI command in MI-mode, I can call my Python functions by CLI. BUT It would be better, IMHO, to use MI commands, especially for GDB/Python commands that return status information and errors.
>
> According to my research, it's not possible to create MI commands by Python. My questions:
>  - Is this correct?

Yes.

>  - If it's correct: Why is that the case? Has it simply not been implemented or are there technical issues/limitations?
>

Just not done (yet).  There have been various discussions on this list
about it.  There are some technical issues which you need to
consider.  I won't recap them here, they are pretty well laid out in
the archives.  So something to think about if you wanted to take a
stab at it.

Cheers

Phil


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-14  7:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-14  7:35 How to implement GDB MI command in Python? Raphael Zulliger
2014-04-14 10:33 ` Phil Muldoon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox