Merge pull request #7356 from SenRamakri/sen_CrashLogParserCrashFix

Fix tool crashing when lines end with cr(not crlf)
pull/7361/head
Cruz Monrreal 2018-06-28 10:10:39 -05:00 committed by GitHub
commit cfe0789e99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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: