Commit Graph

3 Commits

Author SHA1 Message Date
Ivan Grokhotkov
f3cef33791 tools/gdb_panic_server: wrap b"" with bytes() for py2.7 compatibility
Fixes the exception while decoding the stack dump:

    File "tools/gdb_panic_server.py", line 270, in _respond_mem
      result += "{:02x}".format(stack_data[addr - stack_addr_min])
    ValueError: Unknown format code 'x' for object of type 'str'
2021-01-28 11:20:32 +01:00
Fu Hanxi
0146f258d7 style: format python files with isort and double-quote-string-fixer 2021-01-26 10:49:01 +08:00
Ivan Grokhotkov
8f3a3181e6 tools: decode esp32c3 stack dumps in idf_monitor.py
This follows a similar approach as UART core dump handling in
idf_monitor. Panic handler message is detected in the output,
collected into a file, and the file is passed to the decoding script.
In this case, the decoding script acts as a tiny GDB server, so we
can ask GDB to perform the backtrace.
2020-12-22 20:02:48 +11:00