From: Megan Wachs Date: Mon, 14 Aug 2017 20:24:04 +0000 (-0700) Subject: debug: Avoid None type error X-Git-Url: https://git.libre-soc.org/?p=riscv-tests.git;a=commitdiff_plain;h=65c17453e2fb90064dc8e566eb3ef391a90c2e15 debug: Avoid None type error --- 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")