I am using gdb-7.0.1 and I think I found an error in a specific section of my code that has a for loop. The for loop looks like
for (int i=0 ; i< end ; ++i ) {
Here end is a very large integer. The code does not crash on the first iteration and seems to crash somewhere with the iteration number end/2 .
Since I want to understand the behavior of code with iteration number end/2 , then just stepping and nexting from i=0 until reaching this iteration point is not feasible.
Is there a way to tell gdb continue the for loop until i gets the value end/2 , and then wait for the user to manually execute the iteration number end/2 ?
I am using gcc-4.5.2 on Ubuntu Linux
smilingbuddha
source share