mirror of https://github.com/thesofproject/sof.git
coredump-reader: core header and registers printing separately
To separate them visually for better reading Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
This commit is contained in:
parent
56682f4d79
commit
db7a3cfe1b
|
@ -506,6 +506,15 @@ def CoreDumpFactory(dsp_arch):
|
|||
[chunks(word, self.columncount) for word in [
|
||||
["arch", "totalsize", "stackoffset"],
|
||||
["configidhi", "configidlo", "numaregs"],
|
||||
]]
|
||||
)
|
||||
])
|
||||
|
||||
string += "\n# CPU registers:\n\n"
|
||||
|
||||
string += ''.join([self.fmt(is_gdb, x)
|
||||
for x in flaten(
|
||||
[chunks(word, self.columncount) for word in [
|
||||
["exccause", "excvaddr", "ps"],
|
||||
["epc" + str(x) for x in range(1,7+1)],
|
||||
["eps" + str(x) for x in range(2,7+1)],
|
||||
|
@ -521,6 +530,7 @@ def CoreDumpFactory(dsp_arch):
|
|||
]]
|
||||
)
|
||||
])
|
||||
|
||||
if not is_gdb:
|
||||
string += "\n"
|
||||
return string
|
||||
|
@ -631,6 +641,7 @@ class CoreDumpReader(object):
|
|||
]]
|
||||
self.stack = cd_file.read()
|
||||
|
||||
verbosePrint("# Core header:\n")
|
||||
verbosePrint(self.core_dump.to_string(0))
|
||||
|
||||
verbosePrint(self.core_dump.windowstart_process())
|
||||
|
|
Loading…
Reference in New Issue