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 bc06429..6f0bd6a 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: