[pypy-svn] r62478 - pypy/branch/pyjitpl5/pypy/jit/tl

fijal at codespeak.net fijal at codespeak.net
Tue Mar 3 16:35:49 CET 2009


Author: fijal
Date: Tue Mar  3 16:35:48 2009
New Revision: 62478

Modified:
   pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_child.py
Log:
add ability to debug a compilation problem


Modified: pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_child.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_child.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/tl/pypyjit_child.py	Tue Mar  3 16:35:48 2009
@@ -27,6 +27,7 @@
 
 
 def run_child(glob, loc):
+    import sys, pdb
     interp = loc['interp']
     graph = loc['graph']
     interp.malloc_check = False
@@ -38,4 +39,9 @@
     print 'warmspot.jittify_and_run() started...'
     policy = PyPyJitPolicy(interp.typer.annotator.translator)
     option.view = True
-    warmspot.jittify_and_run(interp, graph, [], policy=policy)
+    try:
+        warmspot.jittify_and_run(interp, graph, [], policy=policy,
+                                 listops=True)
+    except Exception, e:
+        print '%s: %s' % (e.__class__, e)
+        pdb.post_mortem(sys.exc_info()[2])



More information about the Pypy-commit mailing list