aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMegan Wachs <megan@sifive.com>2017-08-14 13:24:04 -0700
committerMegan Wachs <megan@sifive.com>2017-08-14 13:24:04 -0700
commit65c17453e2fb90064dc8e566eb3ef391a90c2e15 (patch)
tree6e526911b9903483ceace66300374e6cce09c9d2
parentc689ccb0e52f03a5bf469ddc6a5faf4f6c21870a (diff)
downloadriscv-tests-65c17453e2fb90064dc8e566eb3ef391a90c2e15.zip
riscv-tests-65c17453e2fb90064dc8e566eb3ef391a90c2e15.tar.gz
riscv-tests-65c17453e2fb90064dc8e566eb3ef391a90c2e15.tar.bz2
debug: Avoid None type error
-rw-r--r--debug/testlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/testlib.py b/debug/testlib.py
index 95578ee..8cd5f05 100644
--- a/debug/testlib.py
+++ b/debug/testlib.py
@@ -282,7 +282,7 @@ class Gdb(object):
def __init__(self,
cmd=os.path.expandvars("$RISCV/bin/riscv64-unknown-elf-gdb")):
self.child = pexpect.spawn(cmd)
- self.child.logfile.write("+ %s\n" % cmd)
+ Gdb.logfile.write("+ %s\n" % cmd)
self.wait()
self.command("set confirm off")
self.command("set width 0")