gdb断点加条件

gdb打断点是日常追踪的必备技能。 b 函数名称 其中一高级用法是条件断点 b 函数名称 if a==5//整数类型 b 函数名称 if 0==strcmp(a,"abcdefg") //字符串类型比较