qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] qemu-gdb: add functionality for inspecting core dumps
@ 2015-10-12  8:02 Paolo Bonzini
  2015-10-12  8:02 ` [Qemu-devel] [PATCH 1/3] qemu-gdb: allow using glibc_pointer_guard() on " Paolo Bonzini
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Paolo Bonzini @ 2015-10-12  8:02 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, stefanha

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-10-13 10:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-12  8:02 [Qemu-devel] [PATCH 0/3] qemu-gdb: add functionality for inspecting core dumps Paolo Bonzini
2015-10-12  8:02 ` [Qemu-devel] [PATCH 1/3] qemu-gdb: allow using glibc_pointer_guard() on " Paolo Bonzini
2015-10-12  8:02 ` [Qemu-devel] [PATCH 2/3] qemu-gdb: extract parts of "qemu coroutine" implementation Paolo Bonzini
2015-10-12  8:02 ` [Qemu-devel] [PATCH 3/3] qemu-gdb: add $qemu_coroutine_sp and $qemu_coroutine_pc Paolo Bonzini
2015-10-13 10:14 ` [Qemu-devel] [PATCH 0/3] qemu-gdb: add functionality for inspecting core dumps Stefan Hajnoczi

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).