YAZ  5.23.1
Macros | Functions | Variables
backtrace.c File Reference

get information for abnormal terminated, crashes, etc More...

#include <signal.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <yaz/log.h>
#include <yaz/snprintf.h>
#include <yaz/backtrace.h>
#include <yaz/nmem.h>

Go to the source code of this file.

Macros

#define BACKTRACE_SZ   100
 

Functions

void yaz_enable_panic_backtrace (const char *progname)
 enables backtrace when SIGSEGV/SIGABRT/.. signal is received More...
 

Variables

static char static_progname [256]
 

Detailed Description

get information for abnormal terminated, crashes, etc

Definition in file backtrace.c.

Macro Definition Documentation

#define BACKTRACE_SZ   100

Definition at line 39 of file backtrace.c.

Function Documentation

void yaz_enable_panic_backtrace ( const char *  progname)

enables backtrace when SIGSEGV/SIGABRT/.. signal is received

Parameters
prognamename of executable that we run

Definition at line 190 of file backtrace.c.

References static_progname.

Referenced by main().

Variable Documentation

char static_progname[256]
static

Definition at line 41 of file backtrace.c.

Referenced by yaz_enable_panic_backtrace().