[pypy-svn] r59007 - pypy/dist/pypy/lang/gameboy/debug

cami at codespeak.net cami at codespeak.net
Sat Oct 11 19:52:10 CEST 2008


Author: cami
Date: Sat Oct 11 19:52:08 2008
New Revision: 59007

Modified:
   pypy/dist/pypy/lang/gameboy/debug/debug_rpc_xml_memory.py
   pypy/dist/pypy/lang/gameboy/debug/gameboy_debug_entry_point.py
Log:
smaller changes. remote debugger can now launch the python pdb


Modified: pypy/dist/pypy/lang/gameboy/debug/debug_rpc_xml_memory.py
==============================================================================
--- pypy/dist/pypy/lang/gameboy/debug/debug_rpc_xml_memory.py	(original)
+++ pypy/dist/pypy/lang/gameboy/debug/debug_rpc_xml_memory.py	Sat Oct 11 19:52:08 2008
@@ -337,6 +337,8 @@
         try:
             if int(read) > 0:
                 self.pending_steps = int(read)
+            if read == "pdb":
+            	pdb.set_trace()
         except Exception:
             if ("stop" in read) or ("exit" in read) or (read is "Q"):
                 raise Exception("Debug mode Stopped by User")

Modified: pypy/dist/pypy/lang/gameboy/debug/gameboy_debug_entry_point.py
==============================================================================
--- pypy/dist/pypy/lang/gameboy/debug/gameboy_debug_entry_point.py	(original)
+++ pypy/dist/pypy/lang/gameboy/debug/gameboy_debug_entry_point.py	Sat Oct 11 19:52:08 2008
@@ -78,6 +78,6 @@
 # START ========================================================================
 parse_file_name()
 threading.Timer(1, start_java_version).start()
-start_python_version()
+threading.Timer(0.001, start_python_version()).start()
 
 



More information about the Pypy-commit mailing list