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

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
fiveayem
Member
Member
Posts: 51
Joined: Sun Aug 14, 2011 8:01 am

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

Post 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.
fiveayem
Member
Member
Posts: 51
Joined: Sun Aug 14, 2011 8:01 am

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

Post by fiveayem »

Ok, I am going to try.
User avatar
VolTeK
Member
Member
Posts: 815
Joined: Sat Nov 15, 2008 2:37 pm
Location: The Fire Nation

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

Post 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.
Post Reply