Author: Anton Gulenko <[email protected]>
Branch: storage-display-refactoring
Changeset: r931:ef90a282ad1f
Date: 2014-07-21 18:43 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/ef90a282ad1f/
Log: Clean error message on EXIT_TO_DEBUGGER primitive.
diff --git a/spyvm/primitives.py b/spyvm/primitives.py
--- a/spyvm/primitives.py
+++ b/spyvm/primitives.py
@@ -860,8 +860,8 @@
@expose_primitive(EXIT_TO_DEBUGGER, unwrap_spec=[object])
def func(interp, s_frame, w_rcvr):
- if not objectmodel.we_are_translated():
- import pdb; pdb.set_trace()
+ if interp.space.headless.is_set():
+ exitFromHeadlessExecution(s_frame, "EXIT_TO_DEBUGGER")
raise PrimitiveNotYetWrittenError()
@expose_primitive(CHANGE_CLASS, unwrap_spec=[object, object], no_result=True)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit