From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35003) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlY4W-0002Mr-Oe for qemu-devel@nongnu.org; Mon, 12 Oct 2015 04:03:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZlY4R-0006b0-OR for qemu-devel@nongnu.org; Mon, 12 Oct 2015 04:03:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZlY4R-0006ac-JQ for qemu-devel@nongnu.org; Mon, 12 Oct 2015 04:02:59 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id A879FC0C9A72 for ; Mon, 12 Oct 2015 08:02:58 +0000 (UTC) From: Paolo Bonzini Date: Mon, 12 Oct 2015 10:02:51 +0200 Message-Id: <1444636974-19950-1-git-send-email-pbonzini@redhat.com> Subject: [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: qemu-devel@nongnu.org Cc: kwolf@redhat.com, stefanha@redhat.com 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(-) -- 2.5.0