Function esp_idf_sys::esp_backtrace_print_from_frame

source ยท
pub unsafe extern "C" fn esp_backtrace_print_from_frame(
    depth: c_int,
    frame: *const esp_backtrace_frame_t,
    panic: bool,
) -> esp_err_t
Expand description

@brief Print the backtrace from specified frame.

@param depth The maximum number of stack frames to print (should be > 0) @param frame Starting frame to print from @param panic Indicator if backtrace print is during a system panic

@note On the ESP32, users must call esp_backtrace_get_start() first to flush the stack. @note If a esp_backtrace_frame_t* frame is obtained though a call to esp_backtrace_get_start() from some example function func_a(), then frame is only valid within the frame/scope of func_a(). Users should not attempt to pass/use frame other frames within the same stack of different stacks.

@return - ESP_OK Backtrace successfully printed to completion or to depth limit - ESP_FAIL Backtrace is corrupted