From 3b269c4a96e620c248e4543c8c65d1d3bc561c0b Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Fri, 9 Mar 2018 11:42:48 +0800 Subject: [PATCH] postmortem: raise exception when assert happens Fixes https://github.com/esp8266/Arduino/issues/4480 --- cores/esp8266/core_esp8266_postmortem.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cores/esp8266/core_esp8266_postmortem.c b/cores/esp8266/core_esp8266_postmortem.c index 0a3876537d..9712429795 100644 --- a/cores/esp8266/core_esp8266_postmortem.c +++ b/cores/esp8266/core_esp8266_postmortem.c @@ -197,6 +197,7 @@ void __assert_func(const char *file, int line, const char *func, const char *wha s_panic_line = line; s_panic_func = func; gdb_do_break(); /* if GDB is not present, this is a no-op */ + raise_exception(); } void __panic_func(const char* file, int line, const char* func) {