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: Sun, 04 May 2008 17:29:00 -0000	[thread overview]
Message-ID: <20080504171430.GA18323@caradoc.them.org> (raw)
In-Reply-To: <200805042048.21287.vladimir@codesourcery.com>

On Sun, May 04, 2008 at 08:48:20PM +0400, Vladimir Prus wrote:
> Guess this is because I did not update the grammar per earliner discussion.
> We should have RESULT-RECORD, OUT-OF-BAND-RECORD and PROMPT be independent,
> and allowed to appear in any order.
> 
> > =thread-created after *running makes lots of sense.  =thread-created
> > after ^running is a little weird to me.  If ^running is the response
> > to a command it ought to be followed by a prompt.
> 
> Per current grammar, yes. In principle, no -- prompt indicates that gdb
> is ready to accept further input, and should be printed, naturally, when
> gdb is ready to accept more input -- which is not necessary right after
> printing "^running".

Why should we print ^running before we are ready for more input?

*running, yes, soon as the target starts running.  But ^running is the
result of the command and should show up when the command is done,
shouldn't it?

In other words, the current version:

`OUTPUT ==>'
     `( OUT-OF-BAND-RECORD )* [ RESULT-RECORD ] "(gdb)" NL'

`RESULT-RECORD ==>'
     ` [ TOKEN ] "^" RESULT-CLASS ( "," RESULT )* NL'

Changed to this:

`OUTPUT ==>'
     `OUT-OF-BAND-RECORD | RESULT-RECORD'

`RESULT-RECORD ==>'
     ` [ TOKEN ] "^" RESULT-CLASS ( "," RESULT )* NL "(gdb)" NL'

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2008-05-04 17:14 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 [this message]
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

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=20080504171430.GA18323@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