Make sure that the called function restores the original state of the program before it returns.Andreas.
Thanks~. I know the goal is to restore the original state before the inserted function returns. BUT, how to? Is there any way to tell gcc: "Hey, you should restore the original state before that function returns". I want hints on how to and the existing interfaces in gcc to do this :-).