summary refs log tree commit diff stats
path: root/scripts/qemu-gdb.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2015-10-12 10:02:54 +0200
committerStefan Hajnoczi <stefanha@redhat.com>2015-10-29 17:59:26 +0000
commita201b0ff28d9fa0f965450c1ba7191eca69f9fd5 (patch)
tree50a0e4f761228f4f86ea9a728fdea19c59aa8f10 /scripts/qemu-gdb.py
parent80ab31b257ba3aaa98ce6f1e36592aa20c5366c1 (diff)
downloadfocaccia-qemu-a201b0ff28d9fa0f965450c1ba7191eca69f9fd5.tar.gz
focaccia-qemu-a201b0ff28d9fa0f965450c1ba7191eca69f9fd5.zip
qemu-gdb: add $qemu_coroutine_sp and $qemu_coroutine_pc
These can be useful to manually get a stack trace of a coroutine inside
a core dump.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1444636974-19950-4-git-send-email-pbonzini@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'scripts/qemu-gdb.py')
-rw-r--r--scripts/qemu-gdb.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/qemu-gdb.py b/scripts/qemu-gdb.py
index d6f2e5a903..ef2fd191df 100644
--- a/scripts/qemu-gdb.py
+++ b/scripts/qemu-gdb.py
@@ -38,6 +38,9 @@ QemuCommand()
 coroutine.CoroutineCommand()
 mtree.MtreeCommand()
 
+coroutine.CoroutineSPFunction()
+coroutine.CoroutinePCFunction()
+
 # Default to silently passing through SIGUSR1, because QEMU sends it
 # to itself a lot.
 gdb.execute('handle SIGUSR1 pass noprint nostop')