To complete the Martin info, run gdb and then at the gdb command prompt:
b <file:line_number or function name>
ignore <breakpoint identifier> 100000
Then you run the executable (or you resume it), and then when you want to check the number of hits of the breakpoint, at the gdb prompt:
info breakpoints
source
share