Commit 0673c20
authored
enhanced stack trace decoder for ESP8266 plus minor fixes on the ESP32 side (mostly for consistency). This also updates gdb_hooks to include the register dump into the portion the user is to copy in to the stack trace decoder (#3013)
plus minor fixes on the ESP32 side (mostly for consistency). This also updates gdb_hooks to include the register dump into the portion the user is to copy in to the stack trace decoder
- decoder now includes the register dump, showing the different memory areas color coded to allow quick distinction of code/data addresses
- if possible shows a symbol / code line decode of addresses in the register file
- shows c/c++ context from the source file
- shows assembly context (only after the offending instruction)
- provides the same color coded addresses in the hex stack trace
- shows a list of functions on the stack
- shows a list of data addresses / labels on the stack
The output, when used interactively, uses a pager and the input now requires to mark the end of the input by ^D (what was necessary to not get mixed lines in the output)
I did change the gdb_hooks.cpp file to
- define the FSTRING values in a central place but use them in both the `gdbstub_exception_handler_flash()` and `dumpExceptionInfo()` functions. This might not be the most elegant way, but with the `=======` lines only wrapping around the actual stack dump, the guidance is confusing for the user and they would probably not copy the register file1 parent 8a452d3 commit 0673c20
File tree
3 files changed
+590
-47
lines changed- Sming/Arch
- Esp32/Tools
- Esp8266
- Components/gdbstub/appcode
- Tools
3 files changed
+590
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | | - | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
50 | 52 | | |
51 | 53 | | |
52 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
53 | 65 | | |
54 | 66 | | |
55 | 67 | | |
| |||
273 | 285 | | |
274 | 286 | | |
275 | 287 | | |
276 | | - | |
| 288 | + | |
277 | 289 | | |
278 | 290 | | |
279 | 291 | | |
| |||
405 | 417 | | |
406 | 418 | | |
407 | 419 | | |
408 | | - | |
| 420 | + | |
409 | 421 | | |
410 | 422 | | |
411 | 423 | | |
| |||
437 | 449 | | |
438 | 450 | | |
439 | 451 | | |
440 | | - | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
441 | 463 | | |
442 | 464 | | |
443 | 465 | | |
| |||
474 | 496 | | |
475 | 497 | | |
476 | 498 | | |
477 | | - | |
| 499 | + | |
478 | 500 | | |
479 | 501 | | |
480 | 502 | | |
| |||
614 | 636 | | |
615 | 637 | | |
616 | 638 | | |
617 | | - | |
| 639 | + | |
618 | 640 | | |
619 | 641 | | |
620 | 642 | | |
| |||
651 | 673 | | |
652 | 674 | | |
653 | 675 | | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
654 | 683 | | |
655 | 684 | | |
656 | 685 | | |
| |||
Lines changed: 21 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
62 | | - | |
63 | | - | |
| 61 | + | |
64 | 62 | | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
| 67 | + | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
103 | | - | |
| 106 | + | |
| 107 | + | |
104 | 108 | | |
105 | 109 | | |
106 | 110 | | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
111 | 120 | | |
112 | 121 | | |
113 | 122 | | |
| |||
138 | 147 | | |
139 | 148 | | |
140 | 149 | | |
| 150 | + | |
| 151 | + | |
141 | 152 | | |
142 | 153 | | |
143 | 154 | | |
| |||
0 commit comments