From 65c17453e2fb90064dc8e566eb3ef391a90c2e15 Mon Sep 17 00:00:00 2001 From: Megan Wachs Date: Mon, 14 Aug 2017 13:24:04 -0700 Subject: [PATCH] debug: Avoid None type error --- debug/testlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.30.2