26.6 __builtin_software_breakpoint Built-in Function
Insert a software breakpoint.
Note that the __conditional_software_breakpoint() macro defined in <assert.h> provides a lightweight variant of assert(exp) that causes only a software breakpoint when the assertion fails rather than printing a message. This macro is disabled if, at the moment of including <assert.h>, a macro with the name NDEBUG has already been defined of if a macro with the name __DEBUG has not been defined. For example:
__conditional_software_breakpoint(myPtr!=NULL);
Prototype
void __builtin_software_breakpoint(void)
Argument
None.
Return Value
None.
Assembler Operator/ Machine Instruction
bkpt
Error Messages
None.
