From ed6ac05f6b884b5aa5597bf739fc97527bdab909 Mon Sep 17 00:00:00 2001 From: Adrian Bonislawski Date: Mon, 8 Apr 2019 15:28:02 +0200 Subject: [PATCH] coredump-reader: proper structs alignment with fw data Signed-off-by: Adrian Bonislawski --- tools/coredumper/sof-coredump-reader.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/coredumper/sof-coredump-reader.py b/tools/coredumper/sof-coredump-reader.py index c64056ab1..9c6c138f1 100755 --- a/tools/coredumper/sof-coredump-reader.py +++ b/tools/coredumper/sof-coredump-reader.py @@ -227,6 +227,8 @@ def FileInfoFactory(arch, filename_length): raiseIfArchNotValid(arch) class FileInfo(arch.endianness): _fields_ = [ + ("hdr", c_uint32), + ("code", c_uint32), ("filename", filename_length * c_char), ("line_no", c_uint32) ] @@ -456,6 +458,8 @@ def CoreDumpFactory(dsp_arch): ] ] + [ ("a", dsp_arch.bitness * c_uint32) + ] + [ + ("stack", c_uint32) ] def __init__(self, columncount):