开发者

DebugBreak in Unix/ Linux?

开发者 https://www.devze.com 2023-04-07 16:29 出处:网络
Do we have similar windows API of DebugBreak in Unix/ Linux. I want to debug a daemon process which should open NetBeans when De开发者_Python百科bugBreak statement is executed. Thanks in advance. ther

Do we have similar windows API of DebugBreak in Unix/ Linux. I want to debug a daemon process which should open NetBeans when De开发者_Python百科bugBreak statement is executed. Thanks in advance.


there is __builtin_trap() GCC intrinsic.


Whav! this is what I am looking for Embedded break points in C http://mainisusuallyafunction.blogspot.in/2012/01/embedding-gdb-breakpoints-in-c-source.html and to get sample program have a look in to https://github.com/kmcallister/embedded-breakpoints

0

精彩评论

暂无评论...
验证码 换一张
取 消