gdb breakpoint plus condition
gdb breakpoints are an essential skill for daily tracking. One of the advanced uses of b function name is conditional breakpoint
b function name if a==5//integer type b function name if 0==strcmp(a,"abcdefg") //string type comparison