]> git.cworth.org Git - apitrace/commitdiff
trace: Unwrap all args before serializing them.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 22 Feb 2013 10:23:51 +0000 (10:23 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 22 Feb 2013 10:25:30 +0000 (10:25 +0000)
wrappers/trace.py

index 8ff2b9174efbdcb863f3aee73116c70749ed6f3a..61a2cb95fcf8249c13719464a36bee5891f8f76a 100644 (file)
@@ -493,6 +493,8 @@ class Tracer:
             for arg in function.args:
                 if not arg.output:
                     self.unwrapArg(function, arg)
+            for arg in function.args:
+                if not arg.output:
                     self.serializeArg(function, arg)
             print '    trace::localWriter.endEnter();'
         self.invokeFunction(function)
@@ -694,6 +696,8 @@ class Tracer:
         for arg in method.args:
             if not arg.output:
                 self.unwrapArg(method, arg)
+        for arg in method.args:
+            if not arg.output:
                 self.serializeArg(method, arg)
         print '    trace::localWriter.endEnter();'