Skip to content

RFC Break the debug session on sw errors

[email protected] qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2gdbstub: Add gdbserver_break()gdbstub.c include/exec/gdbstub.h+56 -140 replies
2/2qemu-log: Interrupt the GDB session on guest-errorsqemu-log.c+20 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [RFC 0/2] Break the debug session on sw errors

From: "Edgar E. Iglesias" <[email protected]>

Hi,

I've been using variations of this scheme to aid with debugging guest errors that QEMU can detect. I'm posting this RFC to see if there is interest to get something like this upstreamed.

Patch 1 adds the mechanism to break the debugger session from within emulation models.

Patch 2 hardcodes the interruption of the GDB session on log_guest_error calls to qemu_log_mask.
Some possible ways to conditionalize the behaviour could be through cmdline options or through GDB remote commands.

Any thoughts/ideas on this?

Cheers,
Edgar

Edgar E. Iglesias (2):
gdbstub: Add gdbserver_break()
qemu-log: Interrupt the GDB session on guest-errors

 gdbstub.c              |   68 ++++++++++++++++++++++++++++++++++++++----------
 include/exec/gdbstub.h |    2 ++
 qemu-log.c             |   20 ++++++++++++++
 3 files changed, 76 insertions(+), 14 deletions(-)
Signature · 1 line
1.7.10.4