From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DdsNF-0000hc-A0 for qemu-devel@nongnu.org; Thu, 02 Jun 2005 12:16:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DdsNE-0000h6-4A for qemu-devel@nongnu.org; Thu, 02 Jun 2005 12:16:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdsL1-0008Kc-L0 for qemu-devel@nongnu.org; Thu, 02 Jun 2005 12:14:31 -0400 Received: from [65.74.133.9] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Ddrl8-0002aJ-5e for qemu-devel@nongnu.org; Thu, 02 Jun 2005 11:37:26 -0400 From: Paul Brook Subject: Re: [Qemu-devel] Re: Debugging guest OS Date: Thu, 2 Jun 2005 16:35:03 +0100 References: <429EFEE0.4020003@agro.uba.ar> <87fyw0onk4.fsf@benpfaff.org> <429F23A5.5000904@agro.uba.ar> In-Reply-To: <429F23A5.5000904@agro.uba.ar> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506021635.03227.paul@codesourcery.com> 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 On Thursday 02 June 2005 16:20, Mariano Wahlmann wrote: > 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. Usually it will just be $eip Technically you need to add the current code segment offset, but most (all?) x86 OS use a flat memory model, so this is zero. Paul