File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
tools/debug_tools/crash_log_parser Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3232
3333class ElfHelper (object ):
3434 def __init__ (self , elf_file , map_file ):
35-
36- op = check_output ([_NM_EXEC , _OPT , elf_file .name ])
35+
36+ op = check_output ([_NM_EXEC , _OPT , elf_file .name ]). decode ( 'utf-8' )
3737 self .maplines = map_file .readlines ()
3838 self .matches = _PTN .findall (op )
3939 self .addrs = [int (x [0 ], 16 ) for x in self .matches ]
@@ -115,8 +115,8 @@ def parse_line_for_register(line):
115115def main (crash_log , elfhelper ):
116116 mmfar_val = 0
117117 bfar_val = 0
118- lines = iter (crash_log .read ().splitlines ())
119-
118+ lines = iter (crash_log .read ().decode ( 'utf-8' ). splitlines ())
119+
120120 for eachline in lines :
121121 if "++ MbedOS Fault Handler ++" in eachline :
122122 break
You can’t perform that action at this time.
0 commit comments