gdb faq: how to set/cancel a break
gdb
then it will enter gdb command line
file foobar
run foobar
break foo.cpp:15 (which means to break at line 15 of foo.cpp)
info breakpoints (the result is breakpoints number with its corresponding setting)
delete breakpoints <breakpoints number>