SIFEL/GEFEL/stacktrace.cpp File Reference

#include "stacktrace.h"
#include "systrace.h"

Go to the source code of this file.

Functions

void set_prgname (const char *fname)
 function sets name of the program
void stack_trace (FILE *out, long level)
 function prints stack trace to the file out

Function Documentation

void set_prgname ( const char *  fname  ) 

function sets name of the program

The function initializes internal variable with the program name. It is used by Linux in case of usage of bfd library - i.e. macro TRACE_SOURCE_FILES is defined.

Parameters:
fname - string with program name
Return values:
The function does not return anything

Created by Tomas Koudelka, 01.2010

Definition at line 22 of file stacktrace.cpp.

References set_program_name().

Referenced by main(), mefel_init(), metr_init(), pmefel_init(), pmetr_init(), ptrfel_init(), and trfel_init().

void stack_trace ( FILE *  out,
long  level 
)

function prints stack trace to the file out

The function prints stack trace (i.e. call tree) to the text file defined by out.

Parameters:
out - pointer to the opened file
level - level id from which the stack trace will be printed to out
Returns:
The function does not return anything.

Created by T. Koudelka, 2008

Definition at line 41 of file stacktrace.cpp.

References lin_stack_trace(), and win_stack_trace().

Referenced by print_err(), and print_warning().


Generated by  doxygen 1.6.2