VS2010 - Breakpoint generates "Illegal Instruction" exception

52 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Bear in mind that neither compiiler nor linker has the prior knowledge of actual address space of mapped code section it is the job of NtLoader to insert fixups in PE file during the loading phase.As far as my understanding goes .pdb file can contain relative offsets and size of the symbols for example function calculated on the base of lines of code.Probably the same way is measured the size of the function starting from prologue and going down to the epilogue.Thus debugger needs to disassemble the debugee address space beside walking various thread and process related structures.

If you are interested please insert more breakpoints in your program try various locations not only line no 332.You can also use hardware breakpoints with ba command.

Pages

Leave a Comment

Please sign in to add a comment. Not a member? Join today