kopia lustrzana https://github.com/espressif/esp-idf
gdbstub: Mark the panic handler entry as noreturn
Fixes a warning in panic.c when this panic mode is enabled.pull/585/merge
rodzic
9b30f66fac
commit
c049cd55a6
|
@ -17,6 +17,6 @@
|
||||||
#include <xtensa/config/core.h>
|
#include <xtensa/config/core.h>
|
||||||
#include "freertos/xtensa_api.h"
|
#include "freertos/xtensa_api.h"
|
||||||
|
|
||||||
void esp_gdbstub_panic_handler(XtExcFrame *frame);
|
void esp_gdbstub_panic_handler(XtExcFrame *frame) __attribute__((noreturn));
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -479,7 +479,7 @@ static __attribute__((noreturn)) void commonErrorHandler(XtExcFrame *frame)
|
||||||
esp_core_dump_to_uart(frame);
|
esp_core_dump_to_uart(frame);
|
||||||
#endif
|
#endif
|
||||||
reconfigureAllWdts();
|
reconfigureAllWdts();
|
||||||
#endif
|
#endif /* CONFIG_ESP32_ENABLE_COREDUMP */
|
||||||
esp_panic_wdt_stop();
|
esp_panic_wdt_stop();
|
||||||
#if CONFIG_ESP32_PANIC_PRINT_REBOOT || CONFIG_ESP32_PANIC_SILENT_REBOOT
|
#if CONFIG_ESP32_PANIC_PRINT_REBOOT || CONFIG_ESP32_PANIC_SILENT_REBOOT
|
||||||
panicPutStr("Rebooting...\r\n");
|
panicPutStr("Rebooting...\r\n");
|
||||||
|
@ -493,8 +493,8 @@ static __attribute__((noreturn)) void commonErrorHandler(XtExcFrame *frame)
|
||||||
disableAllWdts();
|
disableAllWdts();
|
||||||
panicPutStr("CPU halted.\r\n");
|
panicPutStr("CPU halted.\r\n");
|
||||||
while (1);
|
while (1);
|
||||||
#endif
|
#endif /* CONFIG_ESP32_PANIC_PRINT_REBOOT || CONFIG_ESP32_PANIC_SILENT_REBOOT */
|
||||||
#endif
|
#endif /* CONFIG_ESP32_PANIC_GDBSTUB */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue