Monday, May 21, 2007

GDB and Ignoring Break Points on the First Instruction

I wondered this semester why GDB ignores breakpoints on the first instruction:
GDB normally ignores breakpoints when it resumes execution, until at least one instruction has been executed. If it did not do this, you would be unable to proceed past a breakpoint without first disabling the breakpoint. This rule applies whether or not the breakpoint already existed when your program stopped. Source.

No comments:

Blog Archive