From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqYFL-0001pi-9L for qemu-devel@nongnu.org; Sun, 25 Oct 2015 23:14:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZqYFI-0007X6-3a for qemu-devel@nongnu.org; Sun, 25 Oct 2015 23:14:55 -0400 Received: from mail-pa0-x234.google.com ([2607:f8b0:400e:c03::234]:35594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZqYFH-0007X2-UD for qemu-devel@nongnu.org; Sun, 25 Oct 2015 23:14:52 -0400 Received: by pasz6 with SMTP id z6so173465958pas.2 for ; Sun, 25 Oct 2015 20:14:51 -0700 (PDT) Sender: Paolo Bonzini References: <1445339117-16278-1-git-send-email-dgilbert@redhat.com> From: Paolo Bonzini Message-ID: <562D9AA6.6090500@redhat.com> Date: Mon, 26 Oct 2015 04:14:46 +0100 MIME-Version: 1.0 In-Reply-To: <1445339117-16278-1-git-send-email-dgilbert@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] gdb command: qemu aios, qemu aiohandlers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Dr. David Alan Gilbert (git)" , qemu-devel@nongnu.org, peter.maydell@linaro.org, famz@redhat.com, stefanha@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