Fix tool crashing when lines end with cr(not crlf)

pull/7356/head
Senthil Ramakrishnan 2018-06-27 17:06:50 -05:00
parent 65abff9ce8
commit 69a149a232
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ def parse_line_for_register(line):
def main(crash_log, elfhelper):
mmfar_val = 0
bfar_val = 0
lines = iter(crash_log.readlines())
lines = iter(crash_log.read().splitlines())
for eachline in lines:
if "++ MbedOS Fault Handler ++" in eachline: