Fix for `CFIEntry.get_decoded()` (#232)
authorDmitry Koltunov <koltunov@ispras.ru>
Tue, 30 Jul 2019 03:11:38 +0000 (06:11 +0300)
committerEli Bendersky <eliben@users.noreply.github.com>
Tue, 30 Jul 2019 03:11:38 +0000 (20:11 -0700)
commit678652dd36872b3b736a54a83b9faa7eb03c6bb2
tree05cbdac4e5452f9b75461face0a586aad9e186fe
parent94c976475e70cce609c4bb9af418c0a29939ce05
Fix for `CFIEntry.get_decoded()` (#232)

* test: test `CFIEntry.get_decoded()`

This test detects an error in `CFIEntry.get_decoded()`, that occurs when
decodes the `DW_CFA_def_cfa_register` instruction without some CFA
definition previously.

Signed-off-by: Koltunov Dmitry <koltunov@ispras.ru>
* add empty `cfa` for fixup decode of the `DW_CFA_def_cfa_register`

Signed-off-by: Koltunov Dmitry <koltunov@ispras.ru>
elftools/dwarf/callframe.py
test/test_callframe.py
test/testfiles_for_unittests/simple_mipsel.c [new file with mode: 0644]
test/testfiles_for_unittests/simple_mipsel.elf [new file with mode: 0755]