Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Bob Rossi <bob@brasko.net>
To: Vladimir Prus <ghost@cs.msu.su>
Cc: gdb@sources.redhat.com
Subject: Re: MI: asynchronous operation details
Date: Tue, 22 Nov 2005 13:38:00 -0000	[thread overview]
Message-ID: <20051122133831.GA21354@white> (raw)
In-Reply-To: <200511221520.24163.ghost@cs.msu.su>

On Tue, Nov 22, 2005 at 03:20:23PM +0300, Vladimir Prus wrote:
> On Tuesday 22 November 2005 15:12, Bob Rossi wrote:
> > On Tue, Nov 22, 2005 at 11:30:04AM +0300, Vladimir Prus wrote:
> > > Hi,
> > > so, in MI mode if I emit "-exec-continue" gdb starts inferiour and
> > > immediately gives me back the prompt, accepting further commands.
> > >
> > > However, I can't:
> > > 1. Understand what commands can meaningfully be issued while the inferior
> > > is running. Say, all data read/write commands are likely to produce
> > > inconsistent results if inferior is running.
> > > 2. Practically figure out which commands can be issued at all. Say, both
> > > -data-evaluate-expression and -exec-continue just hang, returning
> > > nothing. This is with CVS HEAD.
> > >
> > > Do I understand correctly that asynchronous MI just don't exist in CVS
> > > HEAD, and only command prompt loop is asynchronous? Even if so, and fully
> > > asynchronous MI is coming, what's the answer to question (1) above?
> >
> > This is a feature that does not currently work. However, it's possible
> > that Nick Roberts work will address some of this lack of functionality.
> > If not, I'm sure in the future, either I (you) or someone else will
> > eventually get this working.
> 
> Ok, but -- why do I ever want to issue commands while inferior is running? For 
> which kind of commands is that useful?

You could interupt the inferior, to tell it to stop. I think that would
be equivalent to typing ^c at the console now. Also, you could ask 
GDB if it is currently busy, to determine if you can send another
command. That way, you wouldn't have to keep track of the state of GDB,
you could just always ask it what it's state is.

I'm sure there are other useful features also. However, I agree, it
doesn't seem to be necessary. It's just better.

Bob Rossi


  reply	other threads:[~2005-11-22 13:38 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-22  8:33 Vladimir Prus
2005-11-22  9:07 ` Konstantin Karganov
2005-11-22 12:07   ` Vladimir Prus
2005-11-22 12:13 ` Bob Rossi
2005-11-22 12:20   ` Vladimir Prus
2005-11-22 13:38     ` Bob Rossi [this message]
2005-11-22 13:49       ` Vladimir Prus
2005-11-22 14:00         ` Bob Rossi
2005-11-22 14:12           ` Vladimir Prus
2005-11-22 14:19             ` Daniel Jacobowitz
2005-11-22 20:39             ` Nick Roberts
     [not found]               ` <200511230931.50438.ghost@cs.msu.su>
2005-11-23  9:31                 ` Nick Roberts
2005-11-22 20:04     ` Eli Zaretskii
2005-11-22 14:59   ` How can I unsubscribe? Gengis Toledo
2005-11-22 15:11     ` Daniel Jacobowitz
2005-11-22 15:02       ` Daniel Jacobowitz
2005-11-22 16:48       ` Christopher Faylor
2005-11-22 18:42         ` Dave Korn

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=20051122133831.GA21354@white \
    --to=bob@brasko.net \
    --cc=gdb@sources.redhat.com \
    --cc=ghost@cs.msu.su \
    /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