diff options
author | Tim Newsome <tim@sifive.com> | 2016-07-28 10:26:47 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2016-07-28 10:34:02 -0700 |
commit | 553f2a265fe62b514cb97fdbd80ea1743de6e3cf (patch) | |
tree | f165a3ec6b48c587c737b5a8ff25b2ad950b0daf /debug/testlib.py | |
parent | 402d4538783ee7a048809dfa0ce923eca9d3f868 (diff) | |
download | riscv-tests-553f2a265fe62b514cb97fdbd80ea1743de6e3cf.zip riscv-tests-553f2a265fe62b514cb97fdbd80ea1743de6e3cf.tar.gz riscv-tests-553f2a265fe62b514cb97fdbd80ea1743de6e3cf.tar.bz2 |
Add --gdb argument so I can run valgrind on gdb.
Diffstat (limited to 'debug/testlib.py')
-rw-r--r-- | debug/testlib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/debug/testlib.py b/debug/testlib.py index 5e7f366..b3f8f66 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -102,10 +102,10 @@ class Openocd(object): class Gdb(object): def __init__(self, - path=os.path.expandvars("$RISCV/bin/riscv64-unknown-elf-gdb")): - self.child = pexpect.spawn(path) + cmd=os.path.expandvars("$RISCV/bin/riscv64-unknown-elf-gdb")): + self.child = pexpect.spawn(cmd) self.child.logfile = file("gdb.log", "w") - self.child.logfile.write("+ %s\n" % path) + self.child.logfile.write("+ %s\n" % cmd) self.wait() self.command("set confirm off") self.command("set width 0") |