| 26 | extern "C" { |
| 27 | |
| 28 | __attribute__((noreturn)) void __crash(void) { |
| 29 | log_task_info(); |
| 30 | log_memory_info(); |
| 31 | // TODO: Add breakpoint when debugger is attached. |
| 32 | #ifdef ESP_PLATFORM |
| 33 | esp_system_abort("System halted. Connect debugger for more info."); |
| 34 | #else |
| 35 | exit(1); |
| 36 | #endif |
| 37 | __builtin_unreachable(); |
| 38 | } |
| 39 | |
| 40 | } |
nothing calls this directly
no test coverage detected