From: Tim Newsome Date: Mon, 15 Aug 2016 17:54:34 +0000 (-0700) Subject: Fix cut and paste bug. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b83c1a818f1abbf893d2742f6718c2a72b36f59a;p=riscv-tests.git Fix cut and paste bug. Also minor style changes. --- diff --git a/debug/gdbserver.py b/debug/gdbserver.py index 8a6e874..263dbd6 100755 --- a/debug/gdbserver.py +++ b/debug/gdbserver.py @@ -41,14 +41,14 @@ def gdb( if parsed.gdb: gdb = testlib.Gdb(parsed.gdb) else: - gdb = testlib.Gdb() + gdb = testlib.Gdb() - if (binary): - gdb.command("file %s" % self.binary) - if (target): + if binary: + gdb.command("file %s" % binary) + if target: gdb.command("set arch riscv:rv%d" % target.xlen) gdb.command("set remotetimeout %d" % target.timeout_sec) - if (port): + if port: gdb.command("target extended-remote localhost:%d" % port) return gdb