Modify ~/.gdbinit with the following line:
def con
   set $_tmp=1
   while $_tmp < 1000
     c
     set $_tmp += 1
   end
 end