Skip to content

Commit 3b269c4

Browse files
committed
postmortem: raise exception when assert happens
Fixes #4480
1 parent 170911a commit 3b269c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cores/esp8266/core_esp8266_postmortem.c

+1
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ void __assert_func(const char *file, int line, const char *func, const char *wha
197197
s_panic_line = line;
198198
s_panic_func = func;
199199
gdb_do_break(); /* if GDB is not present, this is a no-op */
200+
raise_exception();
200201
}
201202

202203
void __panic_func(const char* file, int line, const char* func) {

0 commit comments

Comments
 (0)