On encountering a programmed breakpoint in the target program:
asm("bkpt");
The target correctly halts and SIGTRAP is reported back to GDB.
On attempting to resume, the program counter remains unchanged, and the breakpoint is executed again.
This makes it impossible to resume or step past a programmed breakpoint.
On encountering a programmed breakpoint in the target program:
asm("bkpt");
The target correctly halts and SIGTRAP is reported back to GDB.
On attempting to resume, the program counter remains unchanged, and the breakpoint is executed again.
This makes it impossible to resume or step past a programmed breakpoint.