esp_core_dump_get_task_regs_dump() function
Get a dump of the task's registers.
Arguments
task
Task to dump the registers from.
reg_dump
Pointer that will be filled with the registers dump. Must **not** be NULL.
Return value
Size, in bytes, of the returned registers duump.
Notes
In practice, this function is used to fill the ELF file with the PR_STATUS sections for all the existing tasks. This structure contains the CPU registers value when the exception occured.