From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlwb6-0008Vc-7V for qemu-devel@nongnu.org; Tue, 13 Oct 2015 06:14:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zlwb2-0005aD-TR for qemu-devel@nongnu.org; Tue, 13 Oct 2015 06:14:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57443) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zlwb2-0005Zk-P4 for qemu-devel@nongnu.org; Tue, 13 Oct 2015 06:14:16 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 08C7C8F262 for ; Tue, 13 Oct 2015 10:14:16 +0000 (UTC) Date: Tue, 13 Oct 2015 11:14:10 +0100 From: Stefan Hajnoczi Message-ID: <20151013101410.GA3057@stefanha-thinkpad.redhat.com> References: <1444636974-19950-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1444636974-19950-1-git-send-email-pbonzini@redhat.com> Subject: Re: [Qemu-devel] [PATCH 0/3] qemu-gdb: add functionality for inspecting core dumps List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: kwolf@redhat.com, qemu-devel@nongnu.org On Mon, Oct 12, 2015 at 10:02:51AM +0200, Paolo Bonzini wrote: > Currently it is very hard to inspect coroutine in core dumps, because > none of the qemu-gdb functionality works. Fixing this is not really > possible because "bt" only works on the core dump's stack pointer and > program counter, but the situation would improve noticeably if only > a coroutine's stack pointer and program counter were accessible at all; > that would allow inspecting the coroutine's stack and building a > stack trace from the hex dump of the stack. > > The main hurdle is that glibc_pointer_guard() cannot be run on a core > dump, because get_fs_base() uses the arch_prctl system call. The first > patch modifies that to use the gdb API instead. The second and third > patch then add the new functions. > > Paolo > > Paolo Bonzini (3): > qemu-gdb: allow using glibc_pointer_guard() on core dumps > qemu-gdb: extract parts of "qemu coroutine" implementation > qemu-gdb: add $qemu_coroutine_sp and $qemu_coroutine_pc > > scripts/qemu-gdb.py | 3 ++ > scripts/qemugdb/coroutine.py | 90 +++++++++++++++++++++++++++++--------------- > 2 files changed, 62 insertions(+), 31 deletions(-) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan