|This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.|
Enter the process debugger
#include <sys/neutrino.h> void DebugBreak( void );
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The DebugBreak() kernel call activates the process debugger if you're debugging the calling process. If not, it sends a SIGTRAP signal to the process.
If you call DebugBreak() from an interrupt handler, it'll activate the kernel debugger (if it's present in your boot image) or send the process a SIGTRAP signal.