Skip to content

Commit

Permalink
Fail on unsupported SREC type.
Browse files Browse the repository at this point in the history
  • Loading branch information
timsifive committed Jan 7, 2019
1 parent 0f826bb commit 7dfe7f4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions debug/gdbserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def srec_parse(line):
elif typ == 'S7':
# ignore execution start field
return 7, 0, 0
else:
raise TestFailed("Unsupported SREC type %r." % typ)

def readable_binary_string(s):
return "".join("%02x" % ord(c) for c in s)
Expand Down

0 comments on commit 7dfe7f4

Please sign in to comment.