esp_core_dump_check_task() function
Check the task passed as a parameter.
Arguments
task
Pointer to the frame exception generated when the panic occured.
Return value
True if the TCB is sane, false else.
Notes
The goal of this function is to check whether the task passed is the task that crashed or not. If this is the case and if it didn't crash within an ISR, its stack pointer will be set to the panic frame, containing all the registers values when the error occured. This function also checks if the TCB address is sane or not.