From 69a149a232ca34e414f7e98fb9cf878874e78ea5 Mon Sep 17 00:00:00 2001 From: Senthil Ramakrishnan Date: Wed, 27 Jun 2018 17:06:50 -0500 Subject: [PATCH] Fix tool crashing when lines end with cr(not crlf) --- tools/debug_tools/crash_log_parser/crash_log_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/debug_tools/crash_log_parser/crash_log_parser.py b/tools/debug_tools/crash_log_parser/crash_log_parser.py index fcaaf81ffd..1114ffbb08 100644 --- a/tools/debug_tools/crash_log_parser/crash_log_parser.py +++ b/tools/debug_tools/crash_log_parser/crash_log_parser.py @@ -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: