X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=retrace%2Fretrace.py;h=2dd8e2f12a2ae0d825c9c61f079946a91b1b4699;hb=53e366e711876c1b7636e861069cb934716aefe0;hp=544796dbbd135dcb301fce3cc89ad03690d6bcf6;hpb=610942b9efd69d50875d0076a0957be0b8fff174;p=apitrace diff --git a/retrace/retrace.py b/retrace/retrace.py index 544796d..2dd8e2f 100644 --- a/retrace/retrace.py +++ b/retrace/retrace.py @@ -150,7 +150,7 @@ class ValueDeserializer(stdapi.Visitor): print ' %s = static_cast<%s>((%s).toPointer());' % (lvalue, pointer, rvalue) def visitObjPointer(self, pointer, lvalue, rvalue): - print ' %s = static_cast<%s>(retrace::toObjPointer(%s));' % (lvalue, pointer, rvalue) + print ' %s = static_cast<%s>(retrace::toObjPointer(call, %s));' % (lvalue, pointer, rvalue) def visitLinearPointer(self, pointer, lvalue, rvalue): print ' %s = static_cast<%s>(retrace::toPointer(%s));' % (lvalue, pointer, rvalue) @@ -356,9 +356,8 @@ class Retracer: def deserializeThisPointer(self, interface): print r' %s *_this;' % (interface.name,) - print r' _this = static_cast<%s *>(retrace::toObjPointer(call.arg(0)));' % (interface.name,) + print r' _this = static_cast<%s *>(retrace::toObjPointer(call, call.arg(0)));' % (interface.name,) print r' if (!_this) {' - print r' retrace::warning(call) << "NULL this pointer\n";' print r' return;' print r' }'