Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Vladimir Prus <vladimir@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: Fix MI/async testsuite
Date: Thu, 05 Jun 2008 16:38:00 -0000	[thread overview]
Message-ID: <20080605163824.GI29085@caradoc.them.org> (raw)
In-Reply-To: <200805051240.48055.vladimir@codesourcery.com>

Sorry, I shouldn't have dropped this conversation.  Now I'm going to
have to figure out all the issues again...

On Mon, May 05, 2008 at 12:40:47PM +0400, Vladimir Prus wrote:
> On Sunday 04 May 2008 23:56:40 Daniel Jacobowitz wrote:
> > For MI2, why can't we leave ^running 
> 
> We can't "leave" it, because in async mode ^running is not immediately followed
> by a prompt, now, and before any my changes. 
> 
> > always followed by a prompt?  We 
> > fail to accept input at that prompt in sync mode, which is a known
> > bug, but that's life.
> 
> I sure can make all ^running be followed by prompt, but that would be "fixing"
> code to be as buggy as the other code. Does it worth the time?

Working async mode is a new feature.  Previous releases of GDB always
had ^running followed by a prompt, and I think that's the right thing
to output if you're going to use ^running.

> > I don't think having ^result followed by =EVENT followed by (gdb)
> > makes sense, 
> 
> I think it does -- and the MI spec I've just posted explicitly calls for
> such behaviour for run commands:
> 
> 1. First you get ^done, which means "Okay, nothing else to do about this command"
> 2. Then you get *running, =whatever, ..., *stopped

Why is *running after ^done, anyway?

> In async mode, you get prompt immediately after (1) -- because it's where gdb
> is ready to accept commands. In sync mode, you get prompt after (2). Of course,
> we can print ^done only after (2) in that case, but does it make sense?

There won't be any ^done will there?  ^running, (gdb), *stopped,
(gdb).  And in async mode I'd expect something like

-exec-start
*running
^done
(gdb)
[pause while things run]
*stopped
[I don't remember if we get a prompt here.]

-- 
Daniel Jacobowitz
CodeSourcery


      reply	other threads:[~2008-06-05 16:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-04 13:40 Vladimir Prus
2008-05-04 17:14 ` Daniel Jacobowitz
2008-05-04 17:22   ` Vladimir Prus
2008-05-04 17:29     ` Daniel Jacobowitz
2008-05-04 17:37       ` Daniel Jacobowitz
2008-05-04 19:02         ` Vladimir Prus
2008-05-04 20:05           ` Daniel Jacobowitz
2008-05-05  9:15             ` Vladimir Prus
2008-06-05 16:38               ` Daniel Jacobowitz [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=20080605163824.GI29085@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sourceware.org \
    --cc=vladimir@codesourcery.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