I'm trying to follow the execution instructions of a simple program I compiled with C++ (it calculates some prime numbers then exits) in a debugger (ollydbg) but I have several questions:
- Why the first instruction isn't the entry point of the "CODE" section? It is different
- As soon as I "step over" a few instructions the debugger crashes and writes "Single step event at ntdll.someaddress, press shift+F7/F8/F9 to pass the exception to the program" and crashes. If I run the program without stepping the instructions it works fine and the program loads without problems
Why does this happen? This doesn't happen only with my program but with several others (almost every other 32 bit exe in my system)