[pypy-svn] r31446 - pypy/dist/pypy/rpython
arigo at codespeak.net
arigo at codespeak.net
Mon Aug 21 17:28:44 CEST 2006
Author: arigo
Date: Mon Aug 21 17:28:42 2006
New Revision: 31446
Modified:
pypy/dist/pypy/rpython/llinterp.py
Log:
(arre, pedronis, arigo)
Make llop.debug_print() print to the html log files as well.
Modified: pypy/dist/pypy/rpython/llinterp.py
==============================================================================
--- pypy/dist/pypy/rpython/llinterp.py (original)
+++ pypy/dist/pypy/rpython/llinterp.py Mon Aug 21 17:28:42 2006
@@ -399,12 +399,17 @@
def op_debug_print(self, *ll_args):
from pypy.rpython.lltypesystem.rstr import STR
+ line = []
for arg in ll_args:
T = lltype.typeOf(arg)
if T == lltype.Ptr(STR):
arg = ''.join(arg.chars)
- print arg,
- print
+ line.append(str(arg))
+ line = ' '.join(line)
+ print line
+ tracer = self.llinterpreter.tracer
+ if tracer:
+ tracer.dump('\n[debug] %s\n' % (line,))
def op_debug_pdb(self, *ll_args):
if self.llinterpreter.tracer:
More information about the Pypy-commit
mailing list