From: Jim Ingham <jingham@apple.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: Bob Rossi <bob_rossi@cox.net>, gdb@sources.redhat.com
Subject: Re: MI query questions
Date: Tue, 30 May 2006 21:30:00 -0000 [thread overview]
Message-ID: <7D653D4A-A9FE-4B53-A6CB-3464235216CF@apple.com> (raw)
In-Reply-To: <20060530204553.GA23684@nevyn.them.org>
On May 30, 2006, at 1:45 PM, Daniel Jacobowitz wrote:
> On Tue, May 30, 2006 at 01:14:12PM -0700, Jim Ingham wrote:
>> I also like this =read-one-line thingie, because it makes it explicit
>> what's going on, namely something other than the MI is trying to read
>> one line of input. So the FE should solicit a line of input from
>> whoever it's getting that from in the command that caused this
>> message to be delivered, and send it on...
>
> While I agree at first look, on the other hand:
>
> (A) It messes up pipelining. You can't throw five commands at GDB at
> once, if one of them might eat further input.
Yes, though another approach is to mark commands that can't safely be
in the middle of a pipeline - of which there is really just one: -
interpreter-exec. Then if you do pipeline those it's your own fault.
After all, I can't think of any case where a real MI command has any
business prompting for more info, and I don't think we would want to
make that an available mode for MI commands. I think for the MI
itself it's much better to have them do their job atomically... So
the issue only arises when you are passing control to another
interpreter, and waiting till that has given control back before
issuing more commands seems the safe thing to do.
>
> (B) It makes parsing the output somewhat trickier.
>
> Would it be helpful to have some general solution for this, presumably
> involving completions (i.e. closures)? Come back and answer the
> prompt
> when you're ready?
This would probably be nicer, though I'm not sure it's worth the
effort unless there are other places where we can forsee using this
beyond -interpreter-exec.
Jim
next prev parent reply other threads:[~2006-05-30 21:11 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-30 3:48 Bob Rossi
2006-05-30 8:20 ` Daniel Jacobowitz
2006-05-30 17:15 ` Jim Ingham
2006-05-30 17:41 ` Bob Rossi
2006-05-30 17:53 ` Jim Ingham
2006-05-30 17:55 ` Jim Ingham
2006-05-30 17:55 ` Bob Rossi
2006-05-30 18:12 ` Daniel Jacobowitz
2006-05-30 20:14 ` Jim Ingham
2006-05-30 18:27 ` Bob Rossi
2006-05-30 18:56 ` Jim Ingham
2006-05-30 20:46 ` Bob Rossi
2006-05-30 21:11 ` Jim Ingham
2006-05-30 21:15 ` Daniel Jacobowitz
2006-05-30 21:30 ` Jim Ingham [this message]
2006-05-31 9:38 ` Daniel Jacobowitz
2006-05-31 13:27 ` Bob Rossi
2006-05-30 17:00 ` Nick Roberts
2006-05-30 17:32 ` Bob Rossi
2006-05-31 10:29 ` Nick Roberts
2006-05-31 13:25 ` Bob Rossi
2006-06-01 0:58 ` Nick Roberts
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=7D653D4A-A9FE-4B53-A6CB-3464235216CF@apple.com \
--to=jingham@apple.com \
--cc=bob_rossi@cox.net \
--cc=drow@false.org \
--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