From db7a3cfe1b807d29379fa48d918e3da19f59c389 Mon Sep 17 00:00:00 2001 From: Adrian Bonislawski Date: Wed, 3 Apr 2019 15:43:15 +0200 Subject: [PATCH] coredump-reader: core header and registers printing separately To separate them visually for better reading Signed-off-by: Adrian Bonislawski --- tools/coredumper/sof-coredump-reader.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/coredumper/sof-coredump-reader.py b/tools/coredumper/sof-coredump-reader.py index d042b1503..471bc4413 100755 --- a/tools/coredumper/sof-coredump-reader.py +++ b/tools/coredumper/sof-coredump-reader.py @@ -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())