#include <stdio.h>
Go to the source code of this file.
Functions | |
void | demangle_watcom (const char *mname, char *dname) |
function performs name demangling for Watcom compiler | |
void | lin_stack_trace (FILE *out, long level) |
function for stack trace in Linux | |
char * | remove_path_level (char *path, long level) |
function reduces path length of the source file name | |
void | set_prgname (const char *name) |
function sets name of the program | |
void | stack_trace (FILE *out, long level) |
function prints stack trace to the file out | |
void | win_stack_trace (FILE *out, long level) |
function for stack trace in Windows |
void demangle_watcom | ( | const char * | mname, | |
char * | dname | |||
) |
function performs name demangling for Watcom compiler
void lin_stack_trace | ( | FILE * | out, | |
long | level | |||
) |
function for stack trace in Linux
Referenced by stack_trace().
char* remove_path_level | ( | char * | path, | |
long | level | |||
) |
function reduces path length of the source file name
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.
fname | - string with program name |
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.
out | - pointer to the opened file | |
level | - level id from which the stack trace will be printed to out |
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().
void win_stack_trace | ( | FILE * | out, | |
long | level | |||
) |
function for stack trace in Windows
Referenced by stack_trace().