aboutsummaryrefslogtreecommitdiff
path: root/debug/targets.py
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2017-10-12 11:53:22 -0700
committerTim Newsome <tim@sifive.com>2017-10-12 11:53:22 -0700
commit7d1ff043bbd917e33065a2de8a4f59df4f79c0f9 (patch)
tree86c207129bab912fbdf5ad966d7be9d3ca394d25 /debug/targets.py
parent9091137e4a4797a91179ab73886697c7fe270da2 (diff)
downloadriscv-tests-7d1ff043bbd917e33065a2de8a4f59df4f79c0f9.zip
riscv-tests-7d1ff043bbd917e33065a2de8a4f59df4f79c0f9.tar.gz
riscv-tests-7d1ff043bbd917e33065a2de8a4f59df4f79c0f9.tar.bz2
Pay attention to server_timeout_sec
Fixes #83.
Diffstat (limited to 'debug/targets.py')
-rw-r--r--debug/targets.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/debug/targets.py b/debug/targets.py
index 624eb71..06688d8 100644
--- a/debug/targets.py
+++ b/debug/targets.py
@@ -60,7 +60,7 @@ class Target(object):
# Timeout waiting for the server to start up. This is different than the
# GDB timeout, which is how long GDB waits for commands to execute.
- # The server_timeout is how long this script waits for the Server to be
+ # The server_timeout is how long this script waits for the server to be
# ready for GDB connections.
server_timeout_sec = 60
@@ -113,7 +113,8 @@ class Target(object):
def server(self):
"""Start the debug server that gdb connects to, eg. OpenOCD."""
return testlib.Openocd(server_cmd=self.server_cmd,
- config=self.openocd_config_path)
+ config=self.openocd_config_path,
+ timeout=self.server_timeout_sec)
def compile(self, hart, *sources):
binary_name = "%s_%s-%d" % (