[PATCH 0/9] scripts/qemugdb: some fixes for 'qemu bt' / 'qemu coroutine' commands

Andrey Drobyshev <[email protected]> Tue, 4 Aug 2026 18:17:34 +0300
Newsgroups gmane.comp.emulators.qemu
Message-ID <[email protected]>
A bunch of fixes for functional bugs, cosmetic improvements and fixes
for annoying failures and corner cases which I encounter when using this
script in gdb sessions.  Most of them are basically fixups for my previous
commit 42f3c143c3a0 ("scripts/qemugdb: coroutine: Add option for obtaining
detailed trace in coredump").  Still I did split them up cause it'd be a
mess putting them all together.

Andrey Drobyshev (9):
  scripts/qemugdb: coroutine: Fix selected frame leak on error path
  scripts/qemugdb: coroutine: Get rid of fallback pattern when dumping
    backtrace
  scripts/qemugdb: coroutine: Only attempt to restore regs in coredump
  scripts/qemugdb: coroutine: Don't unwind past the outermost frame
  scripts/qemugdb: coroutine: Fix patching pt_regs in the coredump
  scripts/qemugdb: coroutine: Fix '--detailed' description
  scripts/qemugdb: coroutine: Handle target absence gracefully
  scripts/qemugdb: coroutine: Speed up coroutine lookup in a coredump
  scripts/qemugdb: coroutine: Don't touch the coredump for a plain
    backtrace

 scripts/qemugdb/coroutine.py | 135 ++++++++++++++++++++++-------------
 1 file changed, 86 insertions(+), 49 deletions(-)

-- 
2.47.1