Author: Anton Gulenko <anton.gule...@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): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit