Skip to content

Commit

Permalink
postmortem: raise exception when assert happens
Browse files Browse the repository at this point in the history
Fixes esp8266#4480

(cherry picked from commit 3b269c4)
  • Loading branch information
igrr authored and bryceschober committed Apr 5, 2018
1 parent 2f14fa9 commit 4bc5ee4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cores/esp8266/core_esp8266_postmortem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4bc5ee4

Please sign in to comment.