qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Re: Debugging guest OS


From: Mariano Wahlmann
Subject: Re: [Qemu-devel] Re: Debugging guest OS
Date: Thu, 02 Jun 2005 13:32:01 -0300
User-agent: Debian Thunderbird 1.0.2 (X11/20050331)



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.


_______________________________________________
Qemu-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/qemu-devel


--
________________________________________________________
Mariano Agustín Wahlmann
Administrador de Red
Facultad de Agronomía - Buenos Aires - Argentina
Te.: (+54 11) 4524-8000 int.8108
email: mailto:address@hidden
www: http://www.agro.uba.ar





reply via email to

[Prev in Thread] Current Thread [Next in Thread]