fix(newlib): fix abort function cause critical error

This commit is contained in:
Dong Heng
2019-11-28 19:26:41 +08:00
parent dd0114dd8c
commit 2872de1e03

View File

@@ -158,7 +158,9 @@ void _free_r(struct _reent *r, void *ptr)
void abort(void) void abort(void)
{ {
ESP_LOGE("ABORT","Error found and abort!"); #ifndef CONFIG_ESP_PANIC_SILENT_REBOOT
ets_printf("abort() was called at PC %p on core %d\r\n", __builtin_return_address(0) - 3, xPortGetCoreID());
#endif
/* cause a exception to jump into panic function */ /* cause a exception to jump into panic function */
while (1) { while (1) {