scripts/qemu-gdb: Always do full stack dump for python errors
authorPeter Xu <peterx@redhat.com>
Thu, 12 Dec 2024 20:47:59 +0000 (15:47 -0500)
committerKevin Wolf <kwolf@redhat.com>
Thu, 6 Feb 2025 12:59:00 +0000 (13:59 +0100)
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>
scripts/qemu-gdb.py

index 4d2a9f6c430ade56697a5d349579d733b266f823..cfae94a2e9063829bf1cefa8f136b3ec69da97d6 100644 (file)
@@ -45,3 +45,5 @@ coroutine.CoroutineBt()
 # 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')