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:
Deomid Ryabkov 2017-05-16 14:29:54 +03:00 committed by Angus Gratton
parent 0b447db8d8
commit 3ac3a78d7d

View file

@ -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