[pypy-svn] r27566 - in pypy/dist/pypy/rpython: . lltypesystem memory

mwh at codespeak.net mwh at codespeak.net
Mon May 22 01:13:37 CEST 2006


Author: mwh
Date: Mon May 22 01:13:34 2006
New Revision: 27566

Modified:
   pypy/dist/pypy/rpython/llinterp.py
   pypy/dist/pypy/rpython/lltypesystem/lloperation.py
   pypy/dist/pypy/rpython/memory/gc.py
Log:
a simple debug_pdb() command


Modified: pypy/dist/pypy/rpython/llinterp.py
==============================================================================
--- pypy/dist/pypy/rpython/llinterp.py	(original)
+++ pypy/dist/pypy/rpython/llinterp.py	Mon May 22 01:13:34 2006
@@ -414,6 +414,10 @@
             print arg,
         print
 
+    def op_debug_pdb(self, *ll_args):
+        import pdb
+        pdb.set_trace()
+
     def op_keepalive(self, value):
         pass
 

Modified: pypy/dist/pypy/rpython/lltypesystem/lloperation.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/lloperation.py	(original)
+++ pypy/dist/pypy/rpython/lltypesystem/lloperation.py	Mon May 22 01:13:34 2006
@@ -357,6 +357,7 @@
     # __________ debugging __________
     'debug_view':           LLOp(),
     'debug_print':          LLOp(),
+    'debug_pdb':            LLOp(),
 }
 
     # __________ operations on PyObjects __________

Modified: pypy/dist/pypy/rpython/memory/gc.py
==============================================================================
--- pypy/dist/pypy/rpython/memory/gc.py	(original)
+++ pypy/dist/pypy/rpython/memory/gc.py	Mon May 22 01:13:34 2006
@@ -545,10 +545,9 @@
             objects.append(pointer.address[0])
             # -------------------------------------------------
             # begin difference from collect
-            llop.debug_debug(lltype.Void,
-                             pointer.address[0], target_addr,
-                             pointer.address[0] == target_addr,
-                             )
+            llop.debug_pdb(lltype.Void,
+                           pointer.address[0], target_addr,
+                           pointer.address[0] == target_addr)
             if pointer.address[0] == target_addr:
                 pointer.address[0] = source_addr
             # end difference from collect



More information about the Pypy-commit mailing list