GDB的Breakpoint, Watchpoint和Catchpoint

Breakpoint : 设置断点比较直接,在某处停止

Watchpoint : 观察点,即某个变量/表达式发生变化时,停止.可扩展为变量被读/被写/被读or写时都停止

Catchpoint : 在发生某种时间时停止,比如异常,或者加载动态库时,fork发生时,系统调用发生时,等等,此时停止

原文地址:https://www.cnblogs.com/qooweds/p/4032847.html