[pypy-svn] r51866 - pypy/branch/jit-refactoring/pypy/jit/timeshifter

arigo at codespeak.net arigo at codespeak.net
Mon Feb 25 22:01:00 CET 2008


Author: arigo
Date: Mon Feb 25 22:00:58 2008
New Revision: 51866

Modified:
   pypy/branch/jit-refactoring/pypy/jit/timeshifter/rtimeshift.py
Log:
A more useful pdb invocation.


Modified: pypy/branch/jit-refactoring/pypy/jit/timeshifter/rtimeshift.py
==============================================================================
--- pypy/branch/jit-refactoring/pypy/jit/timeshifter/rtimeshift.py	(original)
+++ pypy/branch/jit-refactoring/pypy/jit/timeshifter/rtimeshift.py	Mon Feb 25 22:00:58 2008
@@ -762,7 +762,9 @@
                 interpreter.portalstate.compile_more_functions()
             except Exception, e:
                 if not we_are_translated():
-                    import pdb; pdb.set_trace()
+                    import sys, pdb
+                    print >> sys.stderr, "\n*** Error in ll_continue_compilation ***"
+                    pdb.post_mortem(sys.exc_info()[2])
                 lloperation.llop.debug_fatalerror(
                     lltype.Void, "compilation-time error %s" % e)
         self.ll_continue_compilation = ll_continue_compilation



More information about the Pypy-commit mailing list