Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Konstantin Karganov <kostik@ispras.ru>
To: GDB <gdb@sources.redhat.com>
Subject: Re[2]: MI output command error
Date: Thu, 10 Mar 2005 09:33:00 -0000	[thread overview]
Message-ID: <446808079.20050310123642@ispras.ru> (raw)
In-Reply-To: <20050309232239.GB12792@white>

Hello Bob,

> There is no way 1 MI input command can result in more than one MI output
> commands. The front end would probably send 1 command, after it got back
> the first "(gdb)", and then send another command for the second time.
> This would cause the front end's buffer to get out of sync with GDB.

> If anyone think's that this is not a problem, please let me know why.
I think that is not a problem. Look, in MI specification there are special
records for status-async-output ("information about the progress of
slow operation") and notify-async-output ("supplementary information
that the client should handle"). From these descriptions it is clearly
possible, that this records can be multiple (say, a progress of a very
slow operation :) ) plus the result-record for the command.

Another similar hint is that there are (oob-record)* in output rule.
Though it doesn't make several messages now, who knows all the use
cases and how it will behave in the next versions...

For myself, I decided to ignore "(gdb)" strings and wait for the
appropriate result-record (it will always appear, according to
grammar), collecting passing async-records at the same time.

I suppose that the only way to get in line with GDB responses is to
keep track of message tokens. And implementing the GUI frontend you
will have to use tokens anyhow.

-- 
Best regards,
 Konstantin 




  reply	other threads:[~2005-03-10  9:33 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-09  2:40 Bob Rossi
2005-03-09 23:22 ` Bob Rossi
2005-03-10  9:33   ` Konstantin Karganov [this message]
2005-03-10 13:06     ` Bob Rossi
2005-03-10 13:43       ` Karganov Konstantin
2005-03-10 14:01         ` Bob Rossi
2005-03-10 14:15           ` Karganov Konstantin
2005-03-10 14:40             ` Bob Rossi
2005-03-10 15:13               ` Karganov Konstantin
2005-03-10 15:52               ` Dave Korn
2005-03-10 16:09                 ` 'Bob Rossi'
2005-03-10 16:13                   ` Daniel Jacobowitz
2005-03-10 17:44                     ` Bob Rossi
2005-03-10 17:52                       ` Daniel Jacobowitz
2005-03-10 20:48                         ` Bob Rossi
2005-03-10 21:10                           ` Daniel Jacobowitz
2005-03-10 21:25                             ` Bob Rossi
2005-03-10 16:23                   ` Dave Korn
2005-03-10 16:34                     ` Daniel Jacobowitz
2005-03-10 16:48                       ` Dave Korn
2005-03-10 17:03                         ` 'Bob Rossi'
2005-03-11 11:32                           ` Re[2]: " Konstantin Karganov

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=446808079.20050310123642@ispras.ru \
    --to=kostik@ispras.ru \
    --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