瀏覽代碼

scripts/qemu-gdb: Always do full stack dump for python errors

It's easier for either debugging plugin errors, or issue reports.

Signed-off-by: Peter Xu <peterx@redhat.com>
Message-ID: <20241212204801.1420528-2-peterx@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Peter Xu 8 月之前
父節點
當前提交
5bf10468b6
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      scripts/qemu-gdb.py

+ 2 - 0
scripts/qemu-gdb.py

@@ -45,3 +45,5 @@ def __init__(self):
 # Default to silently passing through SIGUSR1, because QEMU sends it
 # to itself a lot.
 gdb.execute('handle SIGUSR1 pass noprint nostop')
+# Always print full stack for python errors, easier to debug and report issues
+gdb.execute('set python print-stack full')