From: Bob Rossi <bob_rossi@cox.net>
To: Nick Roberts <nickrob@snap.net.nz>
Cc: teawater <teawater@gmail.com>, gdb@sourceware.org
Subject: Re: How about remote MI?
Date: Sun, 16 Jul 2006 14:08:00 -0000 [thread overview]
Message-ID: <20060716120310.GA513@brasko.net> (raw)
In-Reply-To: <17593.486.472132.416318@kahikatea.snap.net.nz>
> > BTW, I am trying to make vim2gdb (An vim plug-in to make vim can debug
> > code through GDB. It use GDBRUI in before.) support MI. But the MI
> > output format is not very easy to parse. Could some people recommend a
> > programe or example that parse the MI output for me? If not, I think I
> > will use lex to parse it.
>
> I think the idea is that the front end parses it directly. Generating an
> intermediate langusage just adds to the complexity. If you think MI can
> be improved then please make suggestions.
This is simply not true. It is possible to write an MI parser that "works".
However, AFAIK, no one (besides maybe eclispse) has written a production
quality MI parser that works under all cicumstances, is well tested, ...
Having everyone use there own parser is a lose-lose situation. It will
add to the MI maintaince burden with loads of questions per developer,
it will waste every projects time that wants a parser, and it will give
the community at large a bad sense of GDB front ends (which it already
has BTW) because each not fully tested MI parser will fail in slightly
different boundry cases.
I have started an effort here to provide an MI parser. It is far from
complete. It is not well tested. It does not have documentation.
However, it does syntacticaly parse the output of the test suite.
svn co https://svn.sourceforge.net/svnroot/cgdb/cgdb/trunk/lib/gdbmi
gdbmi
Sometime in the future I will get more time and will eventually get
this silly parser complete. At this point, you can use it to get an AST
of the MI, which is still very useful.
Thanks,
Bob Rossi
next prev parent reply other threads:[~2006-07-16 12:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-15 14:57 teawater
2006-07-15 15:13 ` Nick Roberts
2006-07-15 17:27 ` teawater
2006-07-16 6:42 ` Nick Roberts
2006-07-16 6:56 ` teawater
2006-07-16 12:02 ` Nick Roberts
2006-07-16 14:08 ` Bob Rossi [this message]
2006-07-17 0:59 ` Daniel Jacobowitz
2006-07-17 13:26 ` teawater
2006-07-17 13:43 ` Bob Rossi
2006-07-17 13:49 ` Daniel Jacobowitz
2006-07-17 19:28 ` Bob Rossi
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=20060716120310.GA513@brasko.net \
--to=bob_rossi@cox.net \
--cc=gdb@sourceware.org \
--cc=nickrob@snap.net.nz \
--cc=teawater@gmail.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