[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
getting saved EIP value
Hi,
I am a getting a kernel panic with the error as bad EIP value when I
return from a function. I want to check if the EIP is getting modified
in the function. How do I get the saved EIP value from the stack. In
essence I tried the following, but it failed:
function() {
char temp[4];
printk("Saved EIP %x", *(unsigned long*)(temp + 8));
}
I know that the value printed is wrong, as I also used dump_stack( ),
which gave a differnet address for the previous function.
Any help will be appreciated. thanks in advance.
Regards,
Vinay
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/