scripts/qemu-gdb: add simple tcg lock status helper

Add a simple helper to dump lock state.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Alex Bennée 2018-01-11 11:27:11 +03:00 committed by Paolo Bonzini
parent 809092f313
commit f1cd52d891
2 changed files with 48 additions and 1 deletions

View file

@ -26,7 +26,7 @@ import os, sys
sys.path.append(os.path.dirname(__file__))
from qemugdb import aio, mtree, coroutine
from qemugdb import aio, mtree, coroutine, tcg
class QemuCommand(gdb.Command):
'''Prefix for QEMU debug support commands'''
@ -38,6 +38,7 @@ QemuCommand()
coroutine.CoroutineCommand()
mtree.MtreeCommand()
aio.HandlersCommand()
tcg.TCGLockStatusCommand()
coroutine.CoroutineSPFunction()
coroutine.CoroutinePCFunction()