From: Fabrice Bellard <fabrice@bellard.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Re: Debugging guest OS
Date: Thu, 02 Jun 2005 22:46:41 +0200 [thread overview]
Message-ID: <429F7031.1000809@bellard.org> (raw)
In-Reply-To: <429F23A5.5000904@agro.uba.ar>
Mariano Wahlmann wrote:
>
>
> Ben Pfaff wrote:
>
>> Mariano Wahlmann <wahlmann@agro.uba.ar> writes:
>>
>>
>>
>>> I want to know, if it's posible to debug an guest OS like bochs, i
>>> mean disassemble current instruction, step by step running,
>>> possibility of change registers values, etc. I try to use GDB, but i
>>> think this is for debbuging qemu itself.
>>>
>>
>>
>> You can use gdb on the guest if you invoke qemu with -s.
>>
>>
> that's right, thanks
> but in order to disassemble i have to do "display /i $cs * 16 + $eip",
> this is for real mode, what is the syntaxis for protected mode?
> is there any varible that contains a pointer to current virtual address
> of the next instruction.
In QEMU you have $pc which gives the correct value.
Fabrice.
prev parent reply other threads:[~2005-06-02 20:52 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-02 12:43 [Qemu-devel] Debugging guest OS Mariano Wahlmann
2005-06-02 14:12 ` [Qemu-devel] " Ben Pfaff
2005-06-02 15:20 ` Mariano Wahlmann
2005-06-02 15:35 ` Paul Brook
2005-06-02 16:32 ` Mariano Wahlmann
2005-06-02 16:55 ` Paul Brook
2005-06-02 20:46 ` Fabrice Bellard [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=429F7031.1000809@bellard.org \
--to=fabrice@bellard.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).