]> granicus.if.org Git - esp-idf/commit
Add backtrace to exception output.
authorDeomid Ryabkov <rojer@cesanta.com>
Wed, 7 Dec 2016 18:58:55 +0000 (18:58 +0000)
committerDeomid Ryabkov <rojer@cesanta.com>
Wed, 7 Dec 2016 19:58:06 +0000 (19:58 +0000)
commit20fd57f1472c51865e702562317ca676354f0458
treeb896ac8941e1031e8250981fdd7773267309d13b
parent6dc77bc55c5f14a433fcfd7f1e04280c0b3dd5b9
Add backtrace to exception output.

On Xtensa windowed ABI backtrace is easy to do, and it's immensely
useful for debugging, so - do it by default.
We try to be careful and not deref bogus pointers while walking the
frames.

Example output (from debugging espressif/esp-idf#133):

Backtrace: 0x1:0x3ffc51e0 0x400e9dfa:0x3ffc5210 0x400e9ebc:0x3ffc5230 0x400ec487:0x3ffc5260

With just addr2line utility from binutils, this already pinpoints the
location of the crash.
components/esp32/panic.c