esp32-backtrace icon indicating copy to clipboard operation
esp32-backtrace copied to clipboard

Last release of ESP-IDF changes the backtrace format

Open turgu1 opened this issue 3 years ago • 0 comments

The new backtrace format uses uppercase letters instead of lowercase in hex addresses. Also, the space after 'Backtrace:' is no longer there. I modified the script to get it works:

The following lines:

rePC='PC\s*:? (0x40[0-2][0-9a-f]*)'
reEA='EXCVADDR\s*: (0x40[0-2][0-9a-f]*)'
reBT='Backtrace: (.*)'
reIN='^[0-9a-f:x ]+$'
reOT='[^0-9a-zA-Z](0x40[0-2][0-9a-f]{5})[^0-9a-zA-Z]'

were replaced with:

rePC='PC\s*:? (0x40[0-2][0-9A-Fa-f]*)'
reEA='EXCVADDR\s*: (0x40[0-2][0-9A-Fa-f]*)'
reBT='Backtrace:\s?(.*)'
reIN='^[0-9A-Fa-f:x ]+$'
reOT='[^0-9a-zA-Z](0x40[0-2][0-9A-Fa-f]{5})[^0-9a-zA-Z]'

also the following line:

    if [[ $stk =~ (0x40[0-2][0-9a-f]+): ]]; then

was replaced with:

    if [[ $stk =~ (0x40[0-2][0-9A-Fa-f]+): ]]; then

turgu1 avatar Sep 14 '21 11:09 turgu1