#include "cs_defs.h"
#include <stdarg.h>
Go to the source code of this file.
◆ bft_backtrace_print_t
Function pointer to backtrace print function.
- Parameters
-
[in] | start_depth | depth of backtrace at which to start printing (0 for all, including backtrace print function) |
◆ bft_backtrace_t
◆ bft_backtrace_address()
Return address associated with a backtrace at a given depth.
- Parameters
-
[in] | bt | pointer to backtrace description structure. |
[in] | depth | index in backtrace structure (< bft_backtrace_size(bt)). |
- Returns
- address at the given depth, or NULL.
◆ bft_backtrace_create()
Build a backtrace description structure.
- Returns
- pointer to bft_backtrace_t backtrace descriptor (NULL in case of error, or if backtracing is unavailable on this architecture).
◆ bft_backtrace_demangle()
Demangle a backtrace description structure (for C++).
Demangle a backtrace description structure (for C++).
parameters: bt: <-> pointer to backtrace description structure.
- Parameters
-
[in,out] | bt | pointer to backtrace description structure. |
◆ bft_backtrace_destroy()
Free a backtrace description structure.
- Parameters
-
[in,out] | bt | pointer to backtrace description structure. |
- Returns
- NULL pointer.
◆ bft_backtrace_file()
Return file name associated with a backtrace at a given depth.
- Parameters
-
[in] | bt | pointer to backtrace description structure. |
[in] | depth | index in backtrace structure (< bft_backtrace_size(bt)). |
- Returns
- file name at the given depth, or NULL.
◆ bft_backtrace_function()
Return function name associated with a backtrace at a given depth.
- Parameters
-
[in] | bt | pointer to backtrace description structure. |
[in] | depth | index in backtrace structure (< bft_backtrace_size(bt)). |
- Returns
- function name at the given depth, or NULL.
◆ bft_backtrace_print()
void bft_backtrace_print |
( |
int |
start_depth | ) |
|
Print a backtrace.
- Parameters
-
[in] | start_depth | depth of backtrace at which to start printing (0 for all, including backtrace print function) |
◆ bft_backtrace_print_get()
Returns backtrace print function.
- Returns
- pointer to the backtrace print function.
◆ bft_backtrace_print_set()
Sets a backtrace print function.
- Parameters
-
[in] | fct | pointer to a bft_backtrace_print_t type function. |
◆ bft_backtrace_size()
Return the depth of a backtrace.
- Parameters
-
[in] | bt | pointer to backtrace description structure. |
- Returns
- backtrace depth.