qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Mulyadi Santosa" <mulyadi.santosa@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Documentation/tools on debuging dyngen code?
Date: Thu, 2 Oct 2008 21:51:21 +0700	[thread overview]
Message-ID: <f284c33d0810020751y45751ef0u50bdf52d8076e076@mail.gmail.com> (raw)
In-Reply-To: <E23056347B7FF446B369619CF6AAED9C06887515@xmb-sjc-218.amer.cisco.com>

On 10/2/08, Bruce Beare (bbeare) <bbeare@cisco.com> wrote:
> I'm working on a 2.6.24 Linux port built for ARCH=powerpc and configured
> for the PReP machine. I have the port booting using an unmodified 0.9.1
> version (actually, head from the SVN repo) of qemu-system-ppc but
> sometimes find that QEMU "hangs". Analysis of the hang reveals:
>
>   o C-A C-X does not respond
>   o QEMU is sucking up 100% cpu time of one processor
>   o GDB to the kernel debug port (qemu option -s -p 1234) is non
> responsive
>   o ltrace, strace show no system or library calls in progress
>   o GDB on QEMU shows that it is executing apparently valid code in the
> 0x4xxxxxxx
>     range.
>
> My conclusion is that QEMU is looping while executing the dynamically
> generated code. I'd like to debug this further... and am looking for
> some pointers on how to do so. Is there a built-in debugger? Is there a
> particular probe point that I should set a GDB breakpoint on? What is
> the general procedure for doing this level of debug?

I suggest to observe the generated code first. Explore the -d option
of qemu. For complete list of what you can log, use "qemu -d ?".

regards,

Mulyadi

  reply	other threads:[~2008-10-02 14:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-01 18:40 [Qemu-devel] [PATCH] 4/5: Adjustment needed for (some?) amd64 guests on i386 hosts Juergen Lock
2008-10-01 20:20 ` Thiemo Seufer
2008-10-01 21:18   ` [Qemu-devel] Documentation/tools on debuging dyngen code? Bruce Beare (bbeare)
2008-10-02 14:51     ` Mulyadi Santosa [this message]
2008-10-03 23:38     ` andrzej zaborowski
2008-10-02 18:47   ` [Qemu-devel] [PATCH] 4/5: Adjustment needed for (some?) amd64 guests on i386 hosts Juergen Lock

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=f284c33d0810020751y45751ef0u50bdf52d8076e076@mail.gmail.com \
    --to=mulyadi.santosa@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).