mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 12:10:59 +00:00
gdbstub: Mark the panic handler entry as noreturn
Fixes a warning in panic.c when this panic mode is enabled.
This commit is contained in:

committed by
Angus Gratton

parent
9b30f66fac
commit
c049cd55a6
@@ -479,7 +479,7 @@ static __attribute__((noreturn)) void commonErrorHandler(XtExcFrame *frame)
|
||||
esp_core_dump_to_uart(frame);
|
||||
#endif
|
||||
reconfigureAllWdts();
|
||||
#endif
|
||||
#endif /* CONFIG_ESP32_ENABLE_COREDUMP */
|
||||
esp_panic_wdt_stop();
|
||||
#if CONFIG_ESP32_PANIC_PRINT_REBOOT || CONFIG_ESP32_PANIC_SILENT_REBOOT
|
||||
panicPutStr("Rebooting...\r\n");
|
||||
@@ -493,8 +493,8 @@ static __attribute__((noreturn)) void commonErrorHandler(XtExcFrame *frame)
|
||||
disableAllWdts();
|
||||
panicPutStr("CPU halted.\r\n");
|
||||
while (1);
|
||||
#endif
|
||||
#endif
|
||||
#endif /* CONFIG_ESP32_PANIC_PRINT_REBOOT || CONFIG_ESP32_PANIC_SILENT_REBOOT */
|
||||
#endif /* CONFIG_ESP32_PANIC_GDBSTUB */
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user