diff options
author | Tim Newsome <tim@sifive.com> | 2019-01-07 12:30:49 -0800 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2019-01-07 12:30:49 -0800 |
commit | 7dfe7f45aac18064d3fb082e53d8b5c88d1cd9f8 (patch) | |
tree | 33faefcf3f03acc0da3301b5e2f667145ea72429 /debug/gdbserver.py | |
parent | 0f826bb722482170844f65188bcf6cfa53543bec (diff) | |
download | riscv-tests-7dfe7f45aac18064d3fb082e53d8b5c88d1cd9f8.zip riscv-tests-7dfe7f45aac18064d3fb082e53d8b5c88d1cd9f8.tar.gz riscv-tests-7dfe7f45aac18064d3fb082e53d8b5c88d1cd9f8.tar.bz2 |
Fail on unsupported SREC type.
Diffstat (limited to 'debug/gdbserver.py')
-rwxr-xr-x | debug/gdbserver.py | 2 |
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) |