From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DdwgR-0004IF-5K for qemu-devel@nongnu.org; Thu, 02 Jun 2005 16:52:55 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdwgO-0004EY-5V for qemu-devel@nongnu.org; Thu, 02 Jun 2005 16:52:53 -0400 Received: from [129.104.30.34] (helo=mx1.polytechnique.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Ddwci-0005p7-Gy for qemu-devel@nongnu.org; Thu, 02 Jun 2005 16:49:06 -0400 Received: from [84.99.204.206] (206.204.99-84.rev.gaoland.net [84.99.204.206]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTP id 496A33316B for ; Thu, 2 Jun 2005 22:46:40 +0200 (CEST) Message-ID: <429F7031.1000809@bellard.org> Date: Thu, 02 Jun 2005 22:46:41 +0200 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: Debugging guest OS References: <429EFEE0.4020003@agro.uba.ar> <87fyw0onk4.fsf@benpfaff.org> <429F23A5.5000904@agro.uba.ar> In-Reply-To: <429F23A5.5000904@agro.uba.ar> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Mariano Wahlmann wrote: > > > Ben Pfaff wrote: > >> Mariano Wahlmann 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.