Do we have a similar DebugBreak windows API on Unix / Linux. I want to debug the daemon process that NetBeans should open when the DebugBreak command is executed. Thank you in advance.
Whav! this is what i'm looking for. Built-in breakpoints in C http://mainisusuallyafunction.blogspot.in/2012/01/embedding-gdb-breakpoints-in-c-source.html and for a sample program, see https://github.com/kmcallister/embedded -breakpoints
there is __builtin_trap() internal integrity of GCC.
__builtin_trap()