qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: edgar.iglesias@gmail.com
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [RFC 0/2] Break the debug session on sw errors
Date: Wed, 22 May 2013 12:38:23 +0200	[thread overview]
Message-ID: <1369219105-9111-1-git-send-email-edgar.iglesias@gmail.com> (raw)

From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>

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(-)

-- 
1.7.10.4

             reply	other threads:[~2013-05-22 10:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-22 10:38 edgar.iglesias [this message]
2013-05-22 10:38 ` [Qemu-devel] [RFC 1/2] gdbstub: Add gdbserver_break() edgar.iglesias
2013-05-22 10:38 ` [Qemu-devel] [RFC 2/2] qemu-log: Interrupt the GDB session on guest-errors edgar.iglesias
2013-05-22 10:45   ` Peter Maydell
2013-05-22 14:04     ` Edgar E. Iglesias

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1369219105-9111-1-git-send-email-edgar.iglesias@gmail.com \
    --to=edgar.iglesias@gmail.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).