public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Bob Rossi <bob@brasko.net>
To: Konstantin Karganov <kostik@ispras.ru>
Cc: Eli Zaretskii <eliz@gnu.org>, gdb@sources.redhat.com
Subject: Re: complete GDB MI specification
Date: Tue, 07 Dec 2004 18:58:00 -0000	[thread overview]
Message-ID: <20041207185849.GA12487@white> (raw)
In-Reply-To: <429477215.20041207214436@ispras.ru>

> > There was a long series of discussions about a month ago, either here
> > or on gdb-patches.  Search for "MI" in the archives, and you will find
> > a patch with a formal parser grammar for the MI interface.
> Looked through several (a lot, actually!) discussions and didn't found
> what I need. There were several syntax patches and grammar
> transformations (mostly by Bob Rossi and Michael Chastain), but all of
> them concern general syntax of MI output but don't go into details and
> the output semantics.

I have not had any time to work lately. However, when I get time again,
I plan on formalizing the grammar and hopefully running a parser off of
this grammar through the MI testsuite to verify GDB's output.

Also, I plan on updating the doco to match the actual grammar. I want to
do this because I plan on using this grammar to write a parser capable
of working with GDB for my own personal Free Software project.

> > Please report all such unclear cases, and I will try to fix them.
> Look at the structure of MI description: there are the command syntax
> with explanation and the example of the output. Just an example
> instead of complete output specification. Yes, it fits the general case
> of " var=value (,var=value)* " syntax but the actual semantics and
> possible value pairs are not specified. That is for all commands.

As for semantics, I have not made it this far ....

> Anyway, it looks weird if no rigorous specification of MI output
> exist. IMHO it means (if it is) that no one uses MI in real systems
> (except the tests and demo purposes)...

Well, if you plan on doing this, as I do, it would be helpful if there
were some place's in GDB's doco that we could contribute back information
that we think is helpful. 

Meaning if you need semantic information and then you find out about it,
document it somewhere in GDB. This information could be useful later on.
Especially if I ever get around to verifying the MI testsuite with an MI
parser. At that point, not only could we verify the syntax but we could
make sure some of the semantics are correct too.

Thanks,
Bob Rossi

  reply	other threads:[~2004-12-07 18:58 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-11-29 14:06 (a?)synchronous stepping commands in gdb MI, a week later Konstantin Karganov
2004-11-29 16:08 ` Andrew Cagney
2004-11-29 19:59   ` Re[2]: " Konstantin Karganov
2004-12-06 16:19     ` complete GDB MI specification Konstantin Karganov
2004-12-06 20:55       ` Eli Zaretskii
2004-12-07 18:42         ` Re[2]: " Konstantin Karganov
2004-12-07 18:58           ` Bob Rossi [this message]
2004-12-07 19:45             ` Eli Zaretskii
2004-12-07 19:50               ` Bob Rossi
2004-12-07 21:47                 ` Eli Zaretskii
2004-12-07 19:42           ` Eli Zaretskii
2004-12-08 16:42             ` Re[2]: " Konstantin Karganov
2004-12-08 16:53               ` Bob Rossi
2004-12-08 17:45                 ` Re[2]: " Konstantin Karganov
2004-12-08 18:30                   ` Bob Rossi
2004-12-08 18:34                     ` Bob Rossi
2004-12-08 18:39                     ` Re[2]: " Konstantin Karganov
2004-12-08 17:01               ` Dave Korn

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=20041207185849.GA12487@white \
    --to=bob@brasko.net \
    --cc=eliz@gnu.org \
    --cc=gdb@sources.redhat.com \
    --cc=kostik@ispras.ru \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).