From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [RFC 2/2] qemu-log: Interrupt the GDB session on guest-errors
Date: Wed, 22 May 2013 16:04:14 +0200 [thread overview]
Message-ID: <20130522140414.GL4051@smtp.vpn> (raw)
In-Reply-To: <CAFEAcA-KDNKbwdy0i6T8DL0gO2e7UVjrJvd+bB6-u8dhy8fKUA@mail.gmail.com>
On Wed, May 22, 2013 at 11:45:46AM +0100, Peter Maydell wrote:
> On 22 May 2013 11:38, <edgar.iglesias@gmail.com> wrote:
> > From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>
> > @@ -45,6 +46,25 @@ void qemu_log_mask(int mask, const char *fmt, ...)
> > vfprintf(qemu_logfile, fmt, ap);
> > }
> > va_end(ap);
> > +
> > + /*
> > + * Break the GDB session (if connected) so that the user can inspect the
> > + * guest state.
> > + *
> > + * TODO: Consider conditionalizing this on a cmdline option.
> > + */
>
> This is definitely way too intrusive to be unconditional -- it can
> happen really frequently (for instance Linux on OMAP3 will access
> a nonexistent register every time it takes an interrupt).
Ye, I figured this would be the case.
Maybe a qemu monitor flag controllable from the gdb client itself might be
the most useful, default off. Then one can turn the breaks on/off on
the fly while debugging.
monitor gdb_break_on_guest_errors or something like that.
Cheers,
Edgar
prev parent reply other threads:[~2013-05-22 14:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-22 10:38 [Qemu-devel] [RFC 0/2] Break the debug session on sw errors edgar.iglesias
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 [this message]
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=20130522140414.GL4051@smtp.vpn \
--to=edgar.iglesias@gmail.com \
--cc=peter.maydell@linaro.org \
--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).