Hi all. Here are some qemugdb enhancements around qemu coroutine command. The main feature is a backtrace for coroutine, when debugging with a coredump file.
The problem is that we can't get coroutine backtrace through obvious way - set regs - bt - restore regs when debugging a coredump. So, let's go hard way: clone current coredump file, patch regs in it and execute a subprocess gdb to get backtrace from this patched coredump. Vladimir Sementsov-Ogievskiy (4): scripts/qemugdb: get pthread_self from "info threads" command scripts/qemugdb: improve "qemu coroutine" command scripts/qemugdb: add coredump.py for coredump patching scripts/qemugdb: backtraces for coroutines in coredump scripts/qemugdb/coredump.py | 51 ++++++++++++++++++++++++++++++++++++++++++ scripts/qemugdb/coroutine.py | 53 +++++++++++++++++++++++++++++++++++++++----- 2 files changed, 99 insertions(+), 5 deletions(-) create mode 100644 scripts/qemugdb/coredump.py -- 2.11.1