python/retrace: Process the call no passed to --to option inclusively.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 16 Jul 2009 18:34:44 +0000 (19:34 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 16 Jul 2009 18:34:44 +0000 (19:34 +0100)
src/gallium/state_trackers/python/retrace/interpreter.py

index bc06429b77f4c9b7c89a38dc425381c2e1a80593..6f0bd6ae52a8da44e23646b0b13bce9da2de37c0 100755 (executable)
@@ -677,7 +677,7 @@ class Interpreter(parser.TraceDumper):
             self.interpret_call(call)
 
     def handle_call(self, call):
-        if self.options.stop and call.no >= self.options.stop:
+        if self.options.stop and call.no > self.options.stop:
             sys.exit(0)
 
         if (call.klass, call.method) in self.ignore_calls: