Skip to content

Commit cfe0789

Browse files
author
Cruz Monrreal
authored
Merge pull request #7356 from SenRamakri/sen_CrashLogParserCrashFix
Fix tool crashing when lines end with cr(not crlf)
2 parents 2bf8344 + 69a149a commit cfe0789

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/debug_tools/crash_log_parser/crash_log_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def parse_line_for_register(line):
115115
def main(crash_log, elfhelper):
116116
mmfar_val = 0
117117
bfar_val = 0
118-
lines = iter(crash_log.readlines())
118+
lines = iter(crash_log.read().splitlines())
119119

120120
for eachline in lines:
121121
if "++ MbedOS Fault Handler ++" in eachline:

0 commit comments

Comments
 (0)