Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Dmitry Dzhus <dima@sphinx.net.ru>
Cc: gdb@sources.redhat.com
Subject: Re: GDB frontends, MI-speak and object notation
Date: Sat, 30 May 2009 21:27:00 -0000	[thread overview]
Message-ID: <m3ab4uxowo.fsf@fleche.redhat.com> (raw)
In-Reply-To: <87r5y6y22h.fsf@sphinx.net.ru> (Dmitry Dzhus's message of "Sat\, 30 May 2009 20\:42\:46 +0400")

>>>>> "Dmitry" == Dmitry Dzhus <dima@sphinx.net.ru> writes:

Dmitry> I've managed to map MI output to structured data using JSON
Dmitry> parser from Emacs.

Fun approach... but I would recommend simply writing a true MI parser.
I think there are some elisp parser generators you could use.

Dmitry> The other question is, why not use JSON in GDB/MI at all?

JSON didn't exist when MI was written :).
But yeah, XML or even sexprs would have been a better choice, IMNSHO.
However, that is water under the bridge now... there are a dozen
working parsers, and I think breaking those should not be done
lightly, or perhaps at all.

BTW there are also known MI bugs in gdb, e.g.:

    http://sourceware.org/bugzilla/show_bug.cgi?id=9659

There was a discussion about this one on the list; I think the short
answer is that MI consumers just have to work around the broken bits.
(I think it would be nice if we could enumerate such cases in the
manual, so that MI users don't have to keep rediscovering this stuff,
but I am not sufficiently aware of all the oddities myself to do
this.)

Tom


      parent reply	other threads:[~2009-05-30 21:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-28 12:00 Dmitry Dzhus
2009-05-28 13:32 ` Marc Khouzam
2009-05-28 13:57   ` André Pönitz
2009-05-29  9:25     ` Dmitry Dzhus
2009-05-29 15:30       ` Marc Khouzam
2009-05-30 16:44 ` Dmitry Dzhus
2009-05-30 19:24   ` Vladimir Prus
2009-05-30 21:27   ` Tom Tromey [this message]

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=m3ab4uxowo.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=dima@sphinx.net.ru \
    --cc=gdb@sources.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