Merge branch 'bugfix/coredump_extra_regs_parsing_error' into 'master'

fix(coredump): parse registers values from stack

Closes IDFCI-414

See merge request espressif/esp-idf!12189
This commit is contained in:
Ivan Grokhotkov 2021-01-29 18:31:44 +08:00
commit d653d52e3c

View File

@ -220,7 +220,7 @@ class _TargetMethodsESP32(_TargetMethodsBase):
class _ArchMethodsXtensa(_ArchMethodsBase): class _ArchMethodsXtensa(_ArchMethodsBase):
@staticmethod @staticmethod
def get_registers_from_stack(data, grows_down): def get_registers_from_stack(data, grows_down):
extra_regs = {k: 0 for k in XtensaRegisters().registers} extra_regs = {v: 0 for v in XtensaRegisters().registers.values()}
regs = [0] * REG_NUM regs = [0] * REG_NUM
# TODO: support for growing up stacks # TODO: support for growing up stacks
if not grows_down: if not grows_down: