Skip to content

Commit

Permalink
Merge pull request riscv#507 from riscv-software-src/targets
Browse files Browse the repository at this point in the history
debug: Make Openocd.targets() tolerate blank lines.
  • Loading branch information
timsifive authored Sep 29, 2023
2 parents 02c03f5 + e10e446 commit 85753ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion debug/testlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,8 @@ def targets(self):
headers = lines[0].split()
data = []
for line in lines[2:]:
data.append(dict(zip(headers, line.split()[1:])))
if line.strip():
data.append(dict(zip(headers, line.split()[1:])))
return data

def wait_until_running(self, harts):
Expand Down

0 comments on commit 85753ef

Please sign in to comment.