mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Print the name of the task that hit the stack watchpoint
This may be enough to troubleshoot (increase stack size). Merges https://github.com/espressif/esp-idf/pull/607
This commit is contained in:
parent
0b447db8d8
commit
3ac3a78d7d
@ -212,7 +212,10 @@ void panicHandler(XtExcFrame *frame)
|
||||
//debugcause if the cause is watchdog 1 and clearing it if it's watchdog 0.
|
||||
if (debugRsn&(1<<8)) {
|
||||
#if CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK
|
||||
panicPutStr("Stack canary watchpoint triggered ");
|
||||
const char *name = pcTaskGetTaskName(xTaskGetCurrentTaskHandleForCPU(core_id));
|
||||
panicPutStr("Stack canary watchpoint triggered (");
|
||||
panicPutStr(name);
|
||||
panicPutStr(") ");
|
||||
#else
|
||||
panicPutStr("Watchpoint 1 triggered ");
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user