From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ddsno-0000xX-5V for qemu-devel@nongnu.org; Thu, 02 Jun 2005 12:44:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DdsnZ-0000pR-9y for qemu-devel@nongnu.org; Thu, 02 Jun 2005 12:44:02 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DdsnZ-0000kl-7a for qemu-devel@nongnu.org; Thu, 02 Jun 2005 12:44:01 -0400 Received: from [168.96.156.35] (helo=agro.uba.ar) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DdseF-0006Fl-S1 for qemu-devel@nongnu.org; Thu, 02 Jun 2005 12:34:24 -0400 Received: from [168.96.156.99] (petrus.agro.uba.ar [168.96.156.99]) by agro.uba.ar (8.12.8/8.12.8) with ESMTP id j52GW1fh004071 for ; Thu, 2 Jun 2005 13:32:01 -0300 Message-ID: <429F3481.6090302@agro.uba.ar> Date: Thu, 02 Jun 2005 13:32:01 -0300 From: Mariano Wahlmann 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> <200506021635.03227.paul@codesourcery.com> In-Reply-To: <200506021635.03227.paul@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable 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 Paul Brook wrote: >On Thursday 02 June 2005 16:20, Mariano Wahlmann wrote: > =20 > >>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. >> =20 >> > >Usually it will just be $eip > >Technically you need to add the current code segment offset, but most (a= ll?)=20 >x86 OS use a flat memory model, so this is zero. > >Paul > > =20 > i think this is not true, you can have so many desciptors on gdt table,=20 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=20 monitor, and look what is the current base for cs and add it to eip. This is a very uneasy way. =20 >_______________________________________________ >Qemu-devel mailing list >Qemu-devel@nongnu.org >http://lists.nongnu.org/mailman/listinfo/qemu-devel > > =20 > --=20 ________________________________________________________ Mariano Agust=EDn Wahlmann Administrador de Red Facultad de Agronom=EDa - Buenos Aires - Argentina Te.: (+54 11) 4524-8000 int.8108 email: mailto:wahlmann@agro.uba.ar www: http://www.agro.uba.ar