Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Raphael Zulliger <zulliger@indel.ch>
To: gdb@sourceware.org
Subject: How to implement GDB MI command in Python?
Date: Mon, 14 Apr 2014 07:35:00 -0000	[thread overview]
Message-ID: <534B7F2C.4060506@indel.ch> (raw)

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


             reply	other threads:[~2014-04-14  6:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-14  7:35 Raphael Zulliger [this message]
2014-04-14 10:33 ` Phil Muldoon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=534B7F2C.4060506@indel.ch \
    --to=zulliger@indel.ch \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox