From efb417b685ae8a9e4f460946d1a33a38840bc5c9 Mon Sep 17 00:00:00 2001 From: Mark Florisson Date: Sat, 6 Nov 2010 22:05:48 +0100 Subject: [PATCH] Remove n-steps argument for stepping and stepping over --- Cython/Debugger/libpython.py | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/Cython/Debugger/libpython.py b/Cython/Debugger/libpython.py index 1880b9af..ae73353f 100644 --- a/Cython/Debugger/libpython.py +++ b/Cython/Debugger/libpython.py @@ -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): -- 2.26.2