coredump: Fixes ESP-specific panic reasons handling

This commit is contained in:
Alexey Gerenkov
2020-06-08 19:32:35 +03:00
parent 2f74b4e023
commit 21091c6b0e
15 changed files with 73 additions and 51 deletions
+2 -1
View File
@@ -46,7 +46,7 @@
#include "soc/rtc_cntl_reg.h"
#endif
#include "panic_internal.h"
#include "esp_private/panic_internal.h"
extern int _invalid_pc_placeholder;
@@ -383,6 +383,7 @@ static void frame_to_panic_info(XtExcFrame *frame, panic_info_t *info, bool pseu
info->exception = PANIC_EXCEPTION_FAULT;
info->details = NULL;
info->pseudo_excause = pseudo_excause;
if (pseudo_excause) {
if (frame->exccause == PANIC_RSN_INTWDT_CPU0) {
info->core = 0;