From: Vita Batrla <Vitezslav.Batrla@Sun.COM>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] how to debug qemu?
Date: Wed, 28 Feb 2007 09:36:16 -0000 [thread overview]
Message-ID: <1172655322.9173.35.camel@cml> (raw)
Hi,
I'm running Solaris inside qemu (i386), Most of things work fine,
exactly like on real machine, however, running modular debugger (mdb) on
e.g. /bin/ls turns the virtual machine to worm brick every time I try
it. Same procedure works fine on real hardware. The virtual machine is
flooded by INT 0x01, because env->eflags & TF_MASK is set. How do I find
out which instruction turned TF flag on?
I'd like to find the original instruction, which did set TF flag by
instrumenting cpu_exec() right after the executing gen_func(). Can I get
it by examination env->current_tb?:
(gdb) print env->current_tb[0]
$7 = {pc = 4269802867, cs_base = 0, flags = 68276, size = 8, cflags = 0,
tc_ptr = 0x8b4a630 "�\020", phys_hash_next = 0x0, page_next = {0x81599a0,
0x0}, page_addr = {4194304, 4294967295}, tb_next_offset = {65535, 65535},
tb_jmp_offset = {324, 244, 65535, 65535}, jmp_next = {0x0, 0x0},
jmp_first = 0x81599e2}
Where is the non-translated assembler code, or how to find the
instruction more effectively? Can some one help me please?
Best regards,
Vita
next reply other threads:[~2007-02-28 9:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-28 9:36 Vita Batrla [this message]
2007-02-28 16:19 ` [Qemu-devel] Re: how to debug qemu? Vita Batrla
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=1172655322.9173.35.camel@cml \
--to=vitezslav.batrla@sun.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).