From: Paolo Bonzini <pbonzini@redhat.com>
To: "Dr. David Alan Gilbert (git)" <dgilbert@redhat.com>,
qemu-devel@nongnu.org, peter.maydell@linaro.org, famz@redhat.com,
stefanha@redhat.com
Subject: Re: [Qemu-devel] [PATCH] gdb command: qemu aios, qemu aiohandlers
Date: Mon, 26 Oct 2015 04:14:46 +0100 [thread overview]
Message-ID: <562D9AA6.6090500@redhat.com> (raw)
In-Reply-To: <1445339117-16278-1-git-send-email-dgilbert@redhat.com>
On 20/10/2015 13:05, Dr. David Alan Gilbert (git) wrote:
> + entry = cur.dereference()
> + gdb.write('----\n%s\n' % entry)
> + if cur['io_read'] == sym_fd_coroutine_enter:
> + coptr = (cur['opaque'].cast(gdb.lookup_type('FDYieldUntilData').pointer()))['co']
> + coptr = coptr.cast(gdb.lookup_type('CoroutineUContext').pointer())
> + coroutine.bt_jmpbuf(coptr['env']['__jmpbuf'])
The last two lines here can be written as
coroutine.bt_jmpbuf(coroutine.coroutine_to_jmpbuf(coptr))
with the head of Stefan's trace branch.
Paolo
next prev parent reply other threads:[~2015-10-26 3:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-20 11:05 [Qemu-devel] [PATCH] gdb command: qemu aios, qemu aiohandlers Dr. David Alan Gilbert (git)
2015-10-23 9:32 ` Fam Zheng
2015-10-23 10:09 ` Stefan Hajnoczi
2015-10-26 1:27 ` Fam Zheng
2015-10-26 3:14 ` Paolo Bonzini [this message]
2015-10-27 13:13 ` Dr. David Alan Gilbert
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=562D9AA6.6090500@redhat.com \
--to=pbonzini@redhat.com \
--cc=dgilbert@redhat.com \
--cc=famz@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@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;
as well as URLs for NNTP newsgroup(s).