From: Nick Roberts <nickrob@snap.net.nz>
To: Vladimir Prus <ghost@cs.msu.su>
Cc: gdb@sources.redhat.com
Subject: Re: MI: is target running
Date: Sat, 19 Nov 2005 09:04:00 -0000 [thread overview]
Message-ID: <17278.60050.74886.783071@kahikatea.snap.net.nz> (raw)
In-Reply-To: <200511181740.48427.ghost@cs.msu.su>
> > Yes, I think it should. I have made changes to GDB, based on Apple's work,
> > that makes GDB run asynchronously. This means that the state of the
> > inferior is reported regardless of whether the command executed was from MI
> > or CLI.
>
> Cool. But what does "asynchronously" means, exactly?
I'm not the expert, but I can tell you what I understand by it. Basically GDB
can accept further input even while the inferior is running. I guess that the
output of some commands will depend on the timing, but others won't - I'm not
sure of the full implications.
In terms of the code, target_can_async_p () is true and with MI, for example,
GDB picks up mi_exec_async_cli_cmd_continuation to print the *stopped record,
even with CLI commands like "run". But its probably better to let the code
speak for itself when the branch is created.
By giving each MI command a token number, it can be paired up with its output.
There's no need to have the concept of a queue, and so I think the front-end
is less likely to get confused.
As far as I know, asynchronous operation fits in with the general aims of the
GDB community, but it is certainly not something that I can implement on my
own. So I can't say for sure that it will happen, but just that I would like
it to happen.
Nick
prev parent reply other threads:[~2005-11-19 9:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-18 12:43 Vladimir Prus
2005-11-18 13:37 ` Nick Roberts
2005-11-18 14:44 ` Vladimir Prus
[not found] ` <200511181740.48427.ghost@cs.msu.su>
2005-11-19 9:04 ` Nick Roberts [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=17278.60050.74886.783071@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--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