Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Bob Rossi <bob@brasko.net>
Cc: gdb@sourceware.org
Subject: Re: gdb/mi or python interface for front end
Date: Fri, 23 Aug 2013 14:03:00 -0000	[thread overview]
Message-ID: <87eh9ka4i8.fsf@fleche.redhat.com> (raw)
In-Reply-To: <20130823005118.GA8847@bob-VirtualBox> (Bob Rossi's message of	"Thu, 22 Aug 2013 20:51:19 -0400")

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.

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 ;-)

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).  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.  On the plus side, I think interacting
with Python is generally simpler than interacting with MI.

Tom


  reply	other threads:[~2013-08-23 14:03 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 [this message]
2013-09-03  1:29   ` Bob Rossi
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=87eh9ka4i8.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=bob@brasko.net \
    --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