From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ddt3V-00006y-1f for qemu-devel@nongnu.org; Thu, 02 Jun 2005 13:00:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ddt3S-00005f-I5 for qemu-devel@nongnu.org; Thu, 02 Jun 2005 13:00:27 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ddt3S-0008W7-88 for qemu-devel@nongnu.org; Thu, 02 Jun 2005 13:00:26 -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 1Ddt1Q-0007xu-99 for qemu-devel@nongnu.org; Thu, 02 Jun 2005 12:58:20 -0400 From: Paul Brook Subject: Re: [Qemu-devel] Re: Debugging guest OS Date: Thu, 2 Jun 2005 17:55:57 +0100 References: <429EFEE0.4020003@agro.uba.ar> <200506021635.03227.paul@codesourcery.com> <429F3481.6090302@agro.uba.ar> In-Reply-To: <429F3481.6090302@agro.uba.ar> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506021755.57444.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 17:32, Mariano Wahlmann wrote: > Paul Brook wrote: > >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 > > i think this is not true, you can have so many desciptors on gdt table, > not all start at has 0 as base address. > The way that i find to do that, is to look in "info register" on qemu > monitor, and look what is the current base for cs and add it to eip. > This is a very uneasy way. Right, that's why I said "usually" and "most". Paul