Skip to content

Commit

Permalink
debug: Make Openocd.targets() tolerate blank lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
timsifive committed Sep 28, 2023
1 parent d4eaa5b commit e10e446
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 e10e446

Please sign in to comment.