Remove n-steps argument for stepping and stepping over
authorMark Florisson <markflorisson88@gmail.com>
Sat, 6 Nov 2010 21:05:48 +0000 (22:05 +0100)
committerMark Florisson <markflorisson88@gmail.com>
Sat, 6 Nov 2010 21:05:48 +0000 (22:05 +0100)
Cython/Debugger/libpython.py

index 1880b9af6c331ff01b55bb27a4de6590ab4d4b67..ae73353f7c3b0839067c68771109a40c5a97e788 100644 (file)
@@ -1670,22 +1670,16 @@ class GenericCodeStepper(gdb.Command):
         return depth
     
     def invoke(self, args, from_tty):
-        if args:
-            nsteps = int(args)
-        else:
-            nsteps = 1
-        
         if self.stepper:
             gdb_command = 'step'
         else:
             gdb_command= 'next'
         
-        for nthstep in xrange(nsteps):
-            self.init_stepping()
-            while self.next_step(gdb_command):
-                pass
-            
-            self.end_stepping()
+        self.init_stepping()
+        while self.next_step(gdb_command):
+            pass
+        
+        self.end_stepping()
 
 
 class PythonCodeStepper(GenericCodeStepper):