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:
parent
170911a689
commit
3b269c4a96
@ -197,6 +197,7 @@ void __assert_func(const char *file, int line, const char *func, const char *wha
|
|||||||
s_panic_line = line;
|
s_panic_line = line;
|
||||||
s_panic_func = func;
|
s_panic_func = func;
|
||||||
gdb_do_break(); /* if GDB is not present, this is a no-op */
|
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) {
|
void __panic_func(const char* file, int line, const char* func) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user