Page 1 of 1

[qemu] How can I save the values taken by EIP ?

Posted: Sat Jan 28, 2012 10:37 am
by fiveayem
Hello,

I am currently testing my OS on qemu, and a have a big problem. At some moment, I get a page fault exception with a faulting address 0. I realised that this value is that of EIP. I do not know how the instruction pointer got to 0, I ignore which instruction is responsible for it.

Then I would like to know if it is possible using qemu to trace EIP value along execution. This would useful to debug.

Thanks for your help.

Re: [qemu] How can I save the values taken by EIP ?

Posted: Sat Jan 28, 2012 11:29 am
by fiveayem
Ok, I am going to try.

Re: [qemu] How can I save the values taken by EIP ?

Posted: Sat Jan 28, 2012 11:47 am
by VolTeK
Look up how to debug in bochs. A friend of mine recommended bochs to me months ago because of its debug capabilities. Im glad he did.