#include "cs_defs.h"
#include <stdarg.h>
Go to the source code of this file.
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) |  
 
 
 
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. 
 
 
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). 
 
 
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. |  
 
 
 
Free a backtrace description structure. 
- Parameters
- 
  
    | [in,out] | bt | pointer to backtrace description structure. |  
 
- Returns
- NULL pointer. 
 
 
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. 
 
 
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. 
 
 
      
        
          | 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) |  
 
 
 
Returns backtrace print function. 
- Returns
- pointer to the backtrace print function. 
 
 
Sets a backtrace print function. 
- Parameters
- 
  
    | [in] | fct | pointer to a bft_backtrace_print_t type function. |  
 
 
 
Return the depth of a backtrace. 
- Parameters
- 
  
    | [in] | bt | pointer to backtrace description structure. |  
 
- Returns
- backtrace depth.