Function esp_idf_svc::hal::sys::esp_backtrace_print_from_frame

source ยท
pub unsafe extern "C" fn esp_backtrace_print_from_frame(
    depth: i32,
    frame: *const esp_backtrace_frame_t,
    panic: bool,
) -> i32
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