[pypy-commit] lang-smalltalk storage: Printing stack trace in non-translated mode

anton_gulenko noreply at buildbot.pypy.org
Fri Jul 18 14:09:01 CEST 2014


Author: Anton Gulenko <anton.gulenko at googlemail.com>
Branch: storage
Changeset: r918:2a1d5616e87f
Date: 2014-07-18 13:38 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/2a1d5616e87f/

Log:	Printing stack trace in non-translated mode

diff --git a/targetimageloadingsmalltalk.py b/targetimageloadingsmalltalk.py
--- a/targetimageloadingsmalltalk.py
+++ b/targetimageloadingsmalltalk.py
@@ -3,7 +3,7 @@
 import os
 
 from rpython.rlib.streamio import open_file_as_stream
-from rpython.rlib import jit, rpath
+from rpython.rlib import jit, rpath, objectmodel
 
 from spyvm import model, interpreter, squeakimage, objspace, wrapper,\
     error, shadow, storage_logger, constants
@@ -72,6 +72,9 @@
         return -1
     except Exception, e:
         print_error("Exception: %s" % str(e))
+        if not objectmodel.we_are_translated():
+            import traceback
+            traceback.print_exc()
         return -1
 
 def entry_point(argv):


More information about the pypy-commit mailing list