dump parsing: refuse to continue on incomplete D23 dumps
We should try harder to handle incomplete D21/D23 dumps in the future, but until D21 handled too, bail in D23 as well.
This commit is contained in:
parent
500515eb0a
commit
11a6ac2f4f
1 changed files with 4 additions and 3 deletions
|
@ -137,8 +137,9 @@ def decode_dump(path):
|
||||||
# check if the dump is complete
|
# check if the dump is complete
|
||||||
if len(ranges) != 1 or ranges[0][0] != 0 or \
|
if len(ranges) != 1 or ranges[0][0] != 0 or \
|
||||||
ranges[0][1] != avr.SRAM_START + avr.SRAM_SIZE:
|
ranges[0][1] != avr.SRAM_START + avr.SRAM_SIZE:
|
||||||
print('warning: incomplete D23 dump', file=sys.stderr)
|
print('error: incomplete D23 dump', file=sys.stderr)
|
||||||
else:
|
return None
|
||||||
|
|
||||||
regs = True
|
regs = True
|
||||||
if reason is None:
|
if reason is None:
|
||||||
print('warning: no error line in D23', file=sys.stderr)
|
print('warning: no error line in D23', file=sys.stderr)
|
||||||
|
|
Loading…
Reference in a new issue