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 32
32
33
33
class ElfHelper (object ):
34
34
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' )
37
37
self .maplines = map_file .readlines ()
38
38
self .matches = _PTN .findall (op )
39
39
self .addrs = [int (x [0 ], 16 ) for x in self .matches ]
@@ -115,8 +115,8 @@ def parse_line_for_register(line):
115
115
def main (crash_log , elfhelper ):
116
116
mmfar_val = 0
117
117
bfar_val = 0
118
- lines = iter (crash_log .read ().splitlines ())
119
-
118
+ lines = iter (crash_log .read ().decode ( 'utf-8' ). splitlines ())
119
+
120
120
for eachline in lines :
121
121
if "++ MbedOS Fault Handler ++" in eachline :
122
122
break
You can’t perform that action at this time.
0 commit comments