Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Bob Rossi <bob@brasko.net>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb@sourceware.org
Subject: Re: gdb/mi or python interface for front end
Date: Tue, 03 Sep 2013 01:29:00 -0000	[thread overview]
Message-ID: <20130903012929.GA4379@bob-VirtualBox> (raw)
In-Reply-To: <87eh9ka4i8.fsf@fleche.redhat.com>

On Fri, Aug 23, 2013 at 08:03:27AM -0600, Tom Tromey wrote:
> Bob> I would like some advice. It currently uses annotate level 2
> Bob> for communication. Should I look into gdb/mi or should i look
> Bob> into scripting gdb with the python interface?
> 
> Definitely stop using annotations.

In the process.

> MI is what all the other UIs for gdb use.  It is reasonably complete
> and, while odd and/or buggy in some places, it is at least well known,
> so you'll have plenty of company for either discussing bugs or
> commiseration ;-)

OK. I'm curious if anyone knows if the MI protocol supports NUL
character bytes in it's output. I'm designing the protocol layer and
it would be convient to know if GDB transmits NUL character bytes
while sending output. (It's probably possible when printing a string
array?) An example would be awesome if so.

> I think using Python is cool, but I must admit it has a couple of
> potential drawbacks.  First, it limits the versions of gdb your tool can
> use -- older gdbs do not have Python, and it is an optional feature
> (though most distros build it in).

Which is why I'm still using annotations. Although that argument is
getting older.

> Also, it is not as complete as MI in
> some ways, so you may encounter holes that you need to be filled before
> you can implement some feature.

I'd like to avoid that.

> On the plus side, I think interacting
> with Python is generally simpler than interacting with MI.

I might end up with a hybrid approach. Bubble up my MI protocol and
also support python programming. I'm going to dig deeper at some point
in the future on this one.

Thanks,
Bob Rossi


  reply	other threads:[~2013-09-03  1:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-23  0:51 Bob Rossi
2013-08-23 14:03 ` Tom Tromey
2013-09-03  1:29   ` Bob Rossi [this message]
2013-09-03 21:25     ` Phil Muldoon
2013-09-03 23:37     ` Doug Evans
2013-08-23 14:07 ` Joel Brobecker

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=20130903012929.GA4379@bob-VirtualBox \
    --to=bob@brasko.net \
    --cc=gdb@sourceware.org \
    --cc=tromey@redhat.com \
    /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