aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2016-12-12 16:06:31 -0800
committerGitHub <noreply@github.com>2016-12-12 16:06:31 -0800
commitf8910f9e782dbc1752a7d1b94c7b18bbc04178d3 (patch)
treeef041dd95de7ce27478f96e3b58c76e12d26bec8
parentc5b99270af1deed953ac856b7b5bf3e5f84dd9e6 (diff)
parent9cf2b5516384c47a1e26a9e87738e1ca2050a48e (diff)
downloadriscv-tests-f8910f9e782dbc1752a7d1b94c7b18bbc04178d3.zip
riscv-tests-f8910f9e782dbc1752a7d1b94c7b18bbc04178d3.tar.gz
riscv-tests-f8910f9e782dbc1752a7d1b94c7b18bbc04178d3.tar.bz2
Merge pull request #38 from richardxia/disable_tcl_and_telnet_servers
Disable tcl and telnet servers when running OpenOCD
-rw-r--r--debug/testlib.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/debug/testlib.py b/debug/testlib.py
index 6655e05..ac1d771 100644
--- a/debug/testlib.py
+++ b/debug/testlib.py
@@ -140,8 +140,18 @@ class Openocd(object):
# This command needs to come before any config scripts on the command
# line, since they are executed in order.
- # Tell OpenOCD to bind to an unused port.
- cmd[1:1] = ["--command", "gdb_port %d" % 0]
+ cmd[1:1] = [
+ # Tell OpenOCD to bind gdb to an unused, ephemeral port.
+ "--command",
+ "gdb_port 0",
+ # Disable tcl and telnet servers, since they are unused and because
+ # the port numbers will conflict if multiple OpenOCD processes are
+ # running on the same server.
+ "--command",
+ "tcl_port disabled",
+ "--command",
+ "telnet_port disabled",
+ ]
logfile = open(Openocd.logname, "w")
logfile.write("+ %s\n" % " ".join(cmd))