coredump-reader: proper structs alignment with fw data

Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
This commit is contained in:
Adrian Bonislawski 2019-04-08 15:28:02 +02:00 committed by Marcin Maka
parent faf6696ea3
commit ed6ac05f6b
1 changed files with 4 additions and 0 deletions

View File

@ -227,6 +227,8 @@ def FileInfoFactory(arch, filename_length):
raiseIfArchNotValid(arch) raiseIfArchNotValid(arch)
class FileInfo(arch.endianness): class FileInfo(arch.endianness):
_fields_ = [ _fields_ = [
("hdr", c_uint32),
("code", c_uint32),
("filename", filename_length * c_char), ("filename", filename_length * c_char),
("line_no", c_uint32) ("line_no", c_uint32)
] ]
@ -456,6 +458,8 @@ def CoreDumpFactory(dsp_arch):
] ]
] + [ ] + [
("a", dsp_arch.bitness * c_uint32) ("a", dsp_arch.bitness * c_uint32)
] + [
("stack", c_uint32)
] ]
def __init__(self, columncount): def __init__(self, columncount):