I have a function called a lot of times, and ultimately segfaults.
However, I do not want to set a breakpoint in this function and stop after each call, because I will be here for years.
I heard that I can set counter in GDB for a breakpoint, and every time a breakpoint is hit, the counter decreases and only starts when counter = 0.
Is this accurate, and if so, how do I do it? Please give gdb code to set such a breakpoint.
breakpoints gdb
Tony Stark Jun 02 '10 at 10:43
source share