mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
parse first 256 bytes of log dump as raw data
This commit is contained in:
parent
07ad7b9845
commit
b059157b74
@ -634,7 +634,7 @@ class ESPCoreDumpLoader(object):
|
|||||||
task_regs = self._get_registers_from_stack(data, stack_end > stack_top)
|
task_regs = self._get_registers_from_stack(data, stack_end > stack_top)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
return None
|
return None, None
|
||||||
prstatus = XtensaPrStatus()
|
prstatus = XtensaPrStatus()
|
||||||
prstatus.pr_cursig = 0 # TODO: set sig only for current/failed task
|
prstatus.pr_cursig = 0 # TODO: set sig only for current/failed task
|
||||||
prstatus.pr_pid = i # TODO: use pid assigned by OS
|
prstatus.pr_pid = i # TODO: use pid assigned by OS
|
||||||
@ -1014,7 +1014,7 @@ def info_corefile(args):
|
|||||||
logging.error("Failed to create corefile!")
|
logging.error("Failed to create corefile!")
|
||||||
loader.cleanup()
|
loader.cleanup()
|
||||||
return
|
return
|
||||||
|
print("prog %s" % (args.prog))
|
||||||
exe_elf = ESPCoreDumpElfFile(args.prog)
|
exe_elf = ESPCoreDumpElfFile(args.prog)
|
||||||
core_elf = ESPCoreDumpElfFile(core_fname)
|
core_elf = ESPCoreDumpElfFile(core_fname)
|
||||||
merged_segs = []
|
merged_segs = []
|
||||||
@ -1100,7 +1100,12 @@ def info_corefile(args):
|
|||||||
|
|
||||||
if log_saved:
|
if log_saved:
|
||||||
print("\n====================== CORE DUMP LOG CONTENTS ========================")
|
print("\n====================== CORE DUMP LOG CONTENTS ========================")
|
||||||
print(log_saved)
|
raw_data = ':'.join(x.encode('hex') for x in log_saved[0:256])
|
||||||
|
str_data = log_saved[256:]
|
||||||
|
print('Raw Data:')
|
||||||
|
print(raw_data)
|
||||||
|
print('\nString Data:')
|
||||||
|
print(str_data)
|
||||||
|
|
||||||
print("\n===================== ESP32 CORE DUMP END =====================")
|
print("\n===================== ESP32 CORE DUMP END =====================")
|
||||||
print("===============================================================")
|
print("===============================================================")
|
||||||
|
Loading…
Reference in New Issue
Block a user