Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: Vladimir Prus <vladimir@codesourcery.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [MI/RFC] Emit ^running via observer.
Date: Fri, 27 Jun 2008 06:58:00 -0000	[thread overview]
Message-ID: <18532.12506.972674.635614@kahikatea.snap.net.nz> (raw)
In-Reply-To: <200806261958.06374.vladimir@codesourcery.com>

 > > The tests appear to fail now. 
 > 
 > Which tests? 

All three in mi-async.exp, at the moment.  I'll look at them more closely to
see if they are due to local changes.

 >  With unmodified CVS state, all MI tests pass for me both in sync
 > and async mode. But indeed, if I make mi-async.exp not force async mode, it
 > starts to fail....

mi-async.exp is a test for async mode, so is not expected to pass in sync mode.

 > > SYNC:
 > > 
 > > r
 > > &"r\n"
 > > ~"Starting program: /home/nickrob/myprog \n"
 > > =thread-created,id="1"
 > > ^running
 > > *running,thread-id="all"
 > > (gdb) 
 > > ~"\n"
 > > ~"Breakpoint 1, main (argc=1, argv=0xbf961424) at myprog.c:146\n"
 > > ~"146\tmain (int argc, char **argv) {\n"
 > > *stopped
 > > (gdb) 
 > 
 > ... in this way. 
 > 
 > > i.e no reason, frame, file, etc fields.  It's important for the console in
 > > a frontend that the CLI command generates the same MI output as the
 > > corresponding MI command.
 > 
 > Of course. This is pre-existing problem, though, and was present in gdb 6.8
 > -- except that we did not output neither ^running nor *stopped at all -- so
 > apparently making mi-async.exp not actually enable async mode is a bit
 > premature yet. The problem, it appears, is that while the CLI command
 > executes, 'uiout' is the CLI interpreter's uiout, not MI uiout. I'll
 > probably won't have time to work on this in next month, so patches welcome.

It's not a problem if async mode becomes the default, which is my
understanding.  In sync mode, t may be possible to switch to the underlying MI
interpreter while in "proceed" but I think that using async mode is cleaner and
I have no plans to make sync mode work in this way.

-- 
Nick                                           http://www.inet.net.nz/~nickrob


  parent reply	other threads:[~2008-06-27  0:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-13 22:01 Vladimir Prus
2008-06-20  6:53 ` Nick Roberts
2008-06-25 15:04   ` Vladimir Prus
2008-06-26 13:33     ` Nick Roberts
2008-06-26 18:54       ` Vladimir Prus
2008-06-26 19:34         ` Daniel Jacobowitz
2008-06-28 11:34           ` Vladimir Prus
2008-06-28 16:35             ` Vladimir Prus
2008-06-27  6:58         ` Nick Roberts [this message]
2008-06-27 11:58           ` Vladimir Prus
2008-06-28  5:49             ` Nick Roberts
2008-06-28  9:41               ` Vladimir Prus
2008-06-28 10:16                 ` Nick Roberts
2008-06-28 10:44                   ` Vladimir Prus
2008-06-29  2:40                     ` 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=18532.12506.972674.635614@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=gdb-patches@sources.redhat.com \
    --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