From: Jim Ingham <jingham@apple.com>
To: gdb@sources.redhat.com
Subject: Re: MI rules
Date: Thu, 23 Sep 2004 18:23:00 -0000 [thread overview]
Message-ID: <A48C5E98-0D8D-11D9-AA4E-000A958F4C44@apple.com> (raw)
In-Reply-To: <1095954341.19418.ezmlm@sources.redhat.com>
Sorry for being so late in chiming in, but I guess I am not clear on
exactly what the problem is here.
Xcode uses the command tokens through-out, so it always is able to
match up the command & it's result. We had to do some work to make
sure that if a command like -exec-run gets the target going, and you
come along and issue another command, you still get a running & a
stopped that have the correct numbers.
But I don't think this would be a real problem for the FSF gdb right
now, since there are very few real (any)asynchronous targets in actual
use. If there are, you can look at what we had to change to get this
working. It was tricky IIRC, but not that bad.
Anyway, you almost always will need more information than just "what
was the name of the MI command that I issued", right? You can issue a
whole bunch of "-var-create" commands, for instance, and just knowing
that you issued -var-create isn't going to help you at all. You need
to tie each one to the particular variable the varobj was representing.
So issuing & keeping track of the tokens is pretty much mandatory
anyway, and once you are doing that, you pretty much know how to
interpreter each return value.
Other that that, there are the asynchronous notifications that come
from gdb when something interesting happens, but those should already
all have some unique tag after the "=" that tells you what the data is.
I don't have any big problem with adding the command name after the
command token or something similar, but I don't see that it really adds
much in practical terms. It also looks to me like this will be a
backwards-incompatible change to the mi, no? If so you should bump the
MI version if you add this.
Jim
On Sep 23, 2004, at 8:45 AM, gdb-digest-help@sources.redhat.com wrote:
>
>
> On Wed, Sep 22, 2004 at 12:18:06PM -0400, Bob Rossi wrote:
>
>> I wasn't being critical at all. Personally, I don't like the fact that
>> Eclipse use's a hybrid approach to getting data out of GDB. I have not
>> even started adding MI to CGDB because I've been working on GDB,
>> bringing it up to the standards I need to get CGDB fully usable by
>> only
>> using MI. If others would follow this approach, I'm sure my life would
>> have been a lot easier, and CGDB would have been far more along.
>
> For what it's worth, Xcode (the IDE on MacOS X) uses something like
> one non-MI command these days ("tty"). It's true that we've done a
> lot of work on the MI side of gdb, but an example of an MI-only
> (well, nearly so - there's no bonus points for having 100% MI usage
> so we have that one command there) exists and has been shipping for
> at least a few years now. NB Xcode is gratis free, but not libre free,
> i.e. not free software.
>
> J
next parent reply other threads:[~2004-09-23 18:23 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1095954341.19418.ezmlm@sources.redhat.com>
2004-09-23 18:23 ` Jim Ingham [this message]
2004-09-25 1:05 ` Bob Rossi
2004-09-25 19:01 ` Jim Ingham
2004-09-25 20:12 ` Bob Rossi
2004-09-27 17:39 ` Jim Ingham
2004-09-29 3:00 ` Bob Rossi
2004-09-29 16:13 ` Jim Ingham
2004-09-29 17:27 ` Bob Rossi
2004-09-30 13:26 ` Eli Zaretskii
2004-09-30 16:21 ` Bob Rossi
2004-09-30 16:36 ` Andrew Cagney
2004-09-30 20:42 ` Bob Rossi
[not found] <5733AD9C-0CF7-11D9-8325-000A9569836A@brasko.net>
2004-09-23 0:31 ` Jason Molenda
2004-09-22 13:40 Fabian Cenedese
2004-09-22 13:48 ` Bob Rossi
2004-09-22 14:10 ` Fabian Cenedese
2004-09-22 14:43 ` Bob Rossi
2004-09-22 15:01 ` Fabian Cenedese
2004-09-22 14:58 ` Alain Magloire
2004-09-22 16:18 ` Bob Rossi
2004-09-22 16:59 ` Alain Magloire
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=A48C5E98-0D8D-11D9-AA4E-000A958F4C44@apple.com \
--to=jingham@apple.com \
--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