1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

postmortem: raise exception when assert happens

Fixes https://github.com/esp8266/Arduino/issues/4480
This commit is contained in:
Ivan Grokhotkov 2018-03-09 11:42:48 +08:00 committed by Ivan Grokhotkov
parent 170911a689
commit 3b269c4a96

View File

@ -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) {