Some code cleanup
authorMegan Wachs <megan@sifive.com>
Fri, 5 Aug 2016 21:50:14 +0000 (14:50 -0700)
committerMegan Wachs <megan@sifive.com>
Mon, 8 Aug 2016 18:48:02 +0000 (11:48 -0700)
debug/README.md
debug/gdbserver.py
debug/testlib.py

index 8424b872e4cd7c5c2904814ae0321b1d32314304..56f69db07ec6a1cf6c009a97d1d1314b6b860834 100644 (file)
@@ -19,7 +19,7 @@ Targets
 
 `./gdbserver.py --spike32 --cmd $RISCV/bin/spike`
 
-32-bit SiFive Core on Supported FPGA boards
+32-bit SiFive Core on Supported FPGA Boards &  Hardware
 -------------------------------------
 
 `./gdbserver.py --freedom-e300`
index aa76ceb281d1fb3e828b5488acc6ada4732a97d5..84ef27ffc0e43f913eec4597640e2df45c966d64 100755 (executable)
@@ -593,10 +593,10 @@ class FreedomE300SimTarget(Target):
     instruction_hardware_breakpoint_count = 2
        
     def server(self):
-        sim = testlib.VcsSim(simv=parsed.run)
+        sim = testlib.VcsSim(simv=parsed.run, debug=True)
         x = testlib.Openocd(cmd=parsed.cmd,
                             config="targets/%s/openocd.cfg" % self.name,
-                            keepAlive = sim)
+                            otherProcess = sim)
         time.sleep(20)
         return x
     
index d6044f5eba79adeecdf507d2f43e826155b37feb..99c4a7628b0188568d98a0be9898dd4c5dc3d0e0 100644 (file)
@@ -103,7 +103,6 @@ class VcsSim(object):
                 done = True
             
     def __del__(self):
-        print "DELETE called for VcsSim"
         try:
             self.process.kill()
             self.process.wait()
@@ -112,12 +111,12 @@ class VcsSim(object):
 
         
 class Openocd(object):
-    def __init__(self, cmd=None, config=None, debug=False, keepAlive=None):
+    def __init__(self, cmd=None, config=None, debug=False, otherProcess=None):
 
         # keep handles to other processes -- don't let them be
         # garbage collected yet.
 
-        self.keepAlive = keepAlive
+        self.otherProcess = otherProcess
         if cmd:
             cmd = shlex.split(cmd)
         else: