Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Stack decoder script#8661

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
d-a-v merged 9 commits intoesp8266:masterfrommcspr:tools/decoder
Dec 16, 2022
Merged

Stack decoder script#8661

d-a-v merged 9 commits intoesp8266:masterfrommcspr:tools/decoder
Dec 16, 2022

Conversation

@mcspr
Copy link
Collaborator

@mcsprmcspr commentedAug 23, 2022
edited
Loading

subj
Needs toolchain path, elf path, and the postmortem either as a file or piped into stdin
Not as colorful as java decoder, though. Like monitor filter, tries to 'update' already existing data with our knowledge of addresses and source locations.

Based on the code from

Defaults to addr2line, which seems to be working just fine.
Optional GDBinfo output
(could belist, but I hope if there's an easier way than to parse it yet again like java version does)

resolves#6310 , but probably needs some mention in the documentation

@mcspr
Copy link
CollaboratorAuthor

#include<Arduino.h>int* somewhere {nullptr };voidsetup() {delay(5000);    Serial.begin(115200);    Serial.printf("%d\n", *somewhere);}voidloop() {}
--------------- CUT HERE FOR EXCEPTION DECODER ---------------Exception (28):epc1=0x4020105f epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000>>>stack>>>ctx: contsp: 3ffffe00 end: 3fffffd0 offset: 01903fffff90:  0001c200 0000001c 00000000 402018d93fffffa0:  3fffdad0 00000000 3ffee4bc 402010553fffffb0:  feefeffe feefeffe 3ffee510 402019543fffffc0:  feefeffe feefeffe 3ffe85d8 40100c39<<<stack<<<--------------- CUT HERE FOR EXCEPTION DECODER ---------------
> decoder.py --toolchain-path~/.platformio/packages/toolchain-xtensa/ --elf-path .pio/build/d1_mini/firmware.elf stack.txtException (28) - LoadProhibited: A load referenced a page mapped with an attribute that does not permit loadsepc1=0x4020105f: setup at /home/runner/dev/arduino8661/src/main.cpp:80x402018d9: esp_delay at /home/runner/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/cores/esp8266/core_esp8266_main.cpp:1580x40201055: setup at /home/runner/dev/arduino8661/src/main.cpp:80x40201954:loop_wrapper() at /home/runner/.platformio/packages/framework-arduinoespressif8266@src-31d658a59f41540201fc3726a1394910/cores/esp8266/core_esp8266_main.cpp:2440x40100c39: cont_wrapper at??:?

either for when tools are already in PATHor, using `pio pkg exec --package toolchain-xtensa python decoder.py ...`(where package is a full version spec for pio registry)
@d-a-vd-a-v added the alphaincluded in alpha release labelSep 13, 2022
@d-a-vd-a-v added this to the3.1 milestoneSep 13, 2022
@d-a-vd-a-v merged commiteda64f6 intoesp8266:masterDec 16, 2022
@mcsprmcspr deleted the tools/decoder branchJanuary 7, 2023 00:18
hasenradball pushed a commit to hasenradball/Arduino that referenced this pull requestNov 18, 2024
* stack decoder* +x* cut here* last alloc explain, line breaks* capture* print ctx line* ...and dont ignore sp* non-hyphenated arg for elf, toolchain path to bin/either for when tools are already in PATHor, using `pio pkg exec --package toolchain-xtensa python decoder.py ...`(where package is a full version spec for pio registry)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

alphaincluded in alpha release

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Add a CLI version of ESPExceptionDecoder

2 participants

@mcspr@d-a-v

[8]ページ先頭

©2009-2025 Movatter.jp