elpekenin/crash.h
¶
Utilities to check why (if) last execution crashed.
-
backtrace_t *get_crash_call_stack(uint8_t *depth)¶
[source] Get the information about last execution.
- Parameters:
depth – Pointer to your variable, will be set to how deep the backtrace is.
- Returns:
Call stack that crashed the program (NULL if didn’t crash)
-
void set_crash_info(const char *msg)¶
[source] Store the information that next run will read.
- Parameters:
msg – A text that will be stored along backtrace.