title: How to go at particular value of counter in for loop using gdb?
body: <p>I have a for loop of about 100 odd values. I want to have a breakpoint where I can set some value for the iterator variable and then directly go on that program execution state.</p>
  
  <p>For example</p>
  
  <pre><code>for(int i=0;i&lt;500;i++)
  { 
    doSomething();
  }
  </code></pre>
  
  <p>Here I want to have a breakpoint on <code>i=100;</code> and step through all values from 0 to 99 in one go. Is this possible in <code>gdb</code> and how do I do it?</p>