how to debug ??
Posted: Wed Apr 14, 2004 7:23 am
i want to add a debuger to my page fault handler, and i want to read the value of EIP.
I know that when a PF occure, eip is stored in the stack right after the error code, but when I try this code
eax contain a wrong value (i compared it with bochs values)
i'va tried the same code with : add ebx, 8 ... 1024 ::)
but i can't find the right eip value.
I know that when a PF occure, eip is stored in the stack right after the error code, but when I try this code
Code: Select all
mov ebx, esp
add ebx, 4
mov eax, [ebx]
i'va tried the same code with : add ebx, 8 ... 1024 ::)
but i can't find the right eip value.