From b83c1a818f1abbf893d2742f6718c2a72b36f59a Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Mon, 15 Aug 2016 10:54:34 -0700 Subject: [PATCH] Fix cut and paste bug. Also minor style changes. --- debug/gdbserver.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 -- 2.30.2