Author: Armin Rigo <[email protected]>
Branch: reverse-debugger
Changeset: r94661:f2c1d407e8d7
Date: 2018-05-23 20:12 +0200
http://bitbucket.org/pypy/pypy/changeset/f2c1d407e8d7/
Log: Disable rsiphash if we're using the --revdb option
diff --git a/rpython/rlib/rsiphash.py b/rpython/rlib/rsiphash.py
--- a/rpython/rlib/rsiphash.py
+++ b/rpython/rlib/rsiphash.py
@@ -123,6 +123,8 @@
def compute_result_annotation(self):
translator = self.bookkeeper.annotator.translator
+ if translator.config.translation.reverse_debugger:
+ return # ignore and use the regular hash, with reverse-debugger
if hasattr(translator, 'll_hash_string'):
assert translator.ll_hash_string == ll_hash_string_siphash24
else:
@@ -134,6 +136,9 @@
def specialize_call(self, hop):
hop.exception_cannot_occur()
+ translator = hop.rtyper.annotator.translator
+ if translator.config.translation.reverse_debugger:
+ return # ignore and use the regular hash, with reverse-debugger
bk = hop.rtyper.annotator.bookkeeper
s_callable = bk.immutablevalue(initialize_from_env)
r_callable = hop.rtyper.getrepr(s_callable)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit