title: How to go to the previous line in GDB?
body: <p>Is it possible in gdb to go to a line before the currently executing line.
  e.g:</p>
  
  <pre><code>
  void my_fun( somePtrType** arr,int start,int end)
  {
   // arr is an array of pointers to somePtrType
    //line a
   ... some assignments
   swap(&arr[ind1] , &arr[ind2] ) ;
   //line b (current line )
  }
  </code></pre>
  
  <p>I am at line b currently and can examine the <code>arr</code> values there but I want to go back to line a and examine the contents of <code>arr</code> at that time.</p>
  
  <p>I think it might not be possible because a debugger can run a code in slow motion,but can't make it execute backwards.<br/>
  Any more insights..</p>