[pypy-svn] r60240 - pypy/trunk/pypy/lang/gameboy/debug

cami at codespeak.net cami at codespeak.net
Sun Nov 30 18:35:35 CET 2008


Author: cami
Date: Sun Nov 30 18:35:35 2008
New Revision: 60240

Modified:
   pypy/trunk/pypy/lang/gameboy/debug/debug_rpc_xml_connection.py
   pypy/trunk/pypy/lang/gameboy/debug/gameboy_debug_entry_point.py
   pypy/trunk/pypy/lang/gameboy/debug/gameboy_debug_implementation.py
Log:
added in_between_skip argument to rpc xml connection

Modified: pypy/trunk/pypy/lang/gameboy/debug/debug_rpc_xml_connection.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/debug/debug_rpc_xml_connection.py	(original)
+++ pypy/trunk/pypy/lang/gameboy/debug/debug_rpc_xml_connection.py	Sun Nov 30 18:35:35 2008
@@ -38,12 +38,13 @@
 class DebugRpcXmlConnection(SimpleXMLRPCServer, threading.Thread):
     
     
-    def __init__(self, gameboy_debug, debuggerPort, skip_count):
+    def __init__(self, gameboy_debug, debuggerPort, skip_count, 
+                 in_between_skip):
         threading.Thread.__init__(self)
         SimpleXMLRPCServer.__init__(self, ("localhost", debuggerPort))
         print "python: DEBUGGER PORT:", debuggerPort
         self.skip_count            = skip_count;
-        self.in_between_test      = 1000
+        self.in_between_test      = in_between_skip
         self.debuggerPort         = debuggerPort
         self.gameboy_debug        = gameboy_debug
         self.cpu                  = gameboy_debug.cpu

Modified: pypy/trunk/pypy/lang/gameboy/debug/gameboy_debug_entry_point.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/debug/gameboy_debug_entry_point.py	(original)
+++ pypy/trunk/pypy/lang/gameboy/debug/gameboy_debug_entry_point.py	Sun Nov 30 18:35:35 2008
@@ -15,6 +15,7 @@
 filename    = ROM_PATH + "/rom9/rom9.gb"
 SOCKET_PORT = 55682
 skip_count   = 6150
+in_between_skip = 1000
 #skip_count   = 22545
 #skip_count   = 2700
 # skip_count   = 0
@@ -52,8 +53,9 @@
    
 
 def start_python_version():
-    global filename, skip_count
-    gameBoy = GameBoyDebugImplementation(SOCKET_PORT, skip_count, DebugRpcXmlConnection)
+    global filename, skip_count, in_between_skip
+    gameBoy = GameBoyDebugImplementation(SOCKET_PORT, DebugRpcXmlConnection, 
+                                         skip_count, in_between_skip)
     try:
         gameBoy.load_cartridge_file(str(filename))
     except Exception, error:

Modified: pypy/trunk/pypy/lang/gameboy/debug/gameboy_debug_implementation.py
==============================================================================
--- pypy/trunk/pypy/lang/gameboy/debug/gameboy_debug_implementation.py	(original)
+++ pypy/trunk/pypy/lang/gameboy/debug/gameboy_debug_implementation.py	Sun Nov 30 18:35:35 2008
@@ -11,12 +11,15 @@
 
 # GAMEBOY ----------------------------------------------------------------------
 class GameBoyDebugImplementation(GameBoyImplementation):
-    def __init__(self, debugger_port, skip_execs=0, debug_connection_class=None):
+    def __init__(self, debugger_port, debug_connection_class=None,
+                 skip_execs=0, in_between_skip=1000):
         GameBoyImplementation.__init__(self)
         self.cpu = DebugCPU(self.interrupt, self)
         self.video = DebugVideo(self.video_driver, self.interrupt, self)
         self.rom = self.cpu.rom
-        self.debug_connection = debug_connection_class(self, debugger_port, skip_execs)
+        self.debug_connection = debug_connection_class(self, debugger_port, 
+                                                       skip_execs, 
+                                                       in_between_skip)
         self.create_comparators()
         
      # ------------------------------------------------------------------------   



More information about the Pypy-commit mailing list