Skip to content

qemugdb: coroutine backtrace for coredump

Vladimir Sementsov-Ogievskiy qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4scripts/qemugdb: get pthread_self from "info threads" commandscripts/qemugdb/coroutine.py+12 -12 replies
2/4scripts/qemugdb: improve "qemu coroutine" commandscripts/qemugdb/coroutine.py+14 -41 reply
3/4scripts/qemugdb: add coredump.py for coredump patchingscripts/qemugdb/coredump.py+51 -00 replies
4/4scripts/qemugdb: backtraces for coroutines in coredumpscripts/qemugdb/coroutine.py+24 -21 reply

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchStefan Hajnoczi
1/4R-b
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] qemugdb: coroutine backtrace for coredump

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
Signature · 1 line
2.11.1