Skip to content

Commit 69a149a

Browse files
committed
Fix tool crashing when lines end with cr(not crlf)
1 parent 65abff9 commit 69a149a

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)