debug: Avoid None type error
authorMegan Wachs <megan@sifive.com>
Mon, 14 Aug 2017 20:24:04 +0000 (13:24 -0700)
committerMegan Wachs <megan@sifive.com>
Mon, 14 Aug 2017 20:24:04 +0000 (13:24 -0700)
debug/testlib.py

index 95578eeb5de00097918389a267984317a77d05e0..8cd5f05e53070d11bc64a36a9d9f72f948b66cef 100644 (file)
@@ -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")