From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54583) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr44C-0006mI-9J for qemu-devel@nongnu.org; Tue, 27 Oct 2015 09:13:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zr447-0007io-AJ for qemu-devel@nongnu.org; Tue, 27 Oct 2015 09:13:32 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49226) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zr446-0007ib-VI for qemu-devel@nongnu.org; Tue, 27 Oct 2015 09:13:27 -0400 Date: Tue, 27 Oct 2015 13:13:22 +0000 From: "Dr. David Alan Gilbert" Message-ID: <20151027131321.GB2956@work-vm> References: <1445339117-16278-1-git-send-email-dgilbert@redhat.com> <562D9AA6.6090500@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <562D9AA6.6090500@redhat.com> Subject: Re: [Qemu-devel] [PATCH] gdb command: qemu aios, qemu aiohandlers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: peter.maydell@linaro.org, famz@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com * Paolo Bonzini (pbonzini@redhat.com) wrote: > > > 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. I've just posted a new version with all the other changes in, but I can easily change that one when the trace change lands. Dave > > Paolo -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK