[pypy-commit] pypy reverse-debugger: Disable some modules automatically if we translate pypy with --revdb
arigo
pypy.commits at gmail.com
Sat Jul 2 03:07:55 EDT 2016
Author: Armin Rigo <arigo at tunes.org>
Branch: reverse-debugger
Changeset: r85511:ec9b40e3781d
Date: 2016-07-02 09:09 +0200
http://bitbucket.org/pypy/pypy/changeset/ec9b40e3781d/
Log: Disable some modules automatically if we translate pypy with --revdb
diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -55,6 +55,10 @@
"termios", "_minimal_curses",
])
+reverse_debugger_disable_modules = set([
+ "thread", "_continuation", "_vmprof", "_multiprocessing",
+ ])
+
# XXX this should move somewhere else, maybe to platform ("is this posixish"
# check or something)
if sys.platform == "win32":
@@ -279,6 +283,8 @@
modules = working_modules.copy()
if config.translation.sandbox:
modules = default_modules
+ if config.translation.reverse_debugger:
+ modules -= reverse_debugger_disable_modules
# ignore names from 'essential_modules', notably 'exceptions', which
# may not be present in config.objspace.usemodules at all
modules = [name for name in modules if name not in essential_modules]
More information about the pypy-commit
mailing list