aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2019-01-07 12:30:49 -0800
committerTim Newsome <tim@sifive.com>2019-01-07 12:30:49 -0800
commit7dfe7f45aac18064d3fb082e53d8b5c88d1cd9f8 (patch)
tree33faefcf3f03acc0da3301b5e2f667145ea72429
parent0f826bb722482170844f65188bcf6cfa53543bec (diff)
downloadriscv-tests-7dfe7f45aac18064d3fb082e53d8b5c88d1cd9f8.zip
riscv-tests-7dfe7f45aac18064d3fb082e53d8b5c88d1cd9f8.tar.gz
riscv-tests-7dfe7f45aac18064d3fb082e53d8b5c88d1cd9f8.tar.bz2
Fail on unsupported SREC type.
-rwxr-xr-xdebug/gdbserver.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/debug/gdbserver.py b/debug/gdbserver.py
index cdf04c1..0956fa8 100755
--- a/debug/gdbserver.py
+++ b/debug/gdbserver.py
@@ -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)