BRL-CAD
backtrace.c File Reference
#include "common.h"
#include <signal.h>
#include <stdarg.h>
#include <stdlib.h>
#include <time.h>
#include <string.h>
#include "bsocket.h"
#include "bio.h"
#include "bu/debug.h"
#include "bu/file.h"
#include "bu/log.h"
#include "bu/malloc.h"
#include "bu/parallel.h"
#include "bu/str.h"
Include dependency graph for backtrace.c:

Go to the source code of this file.

Macros

#define BT_BUFSIZE   4096
 

Functions

HIDDEN void backtrace_sigchld (int signum)
 
HIDDEN void backtrace_sigint (int signum)
 
HIDDEN void backtrace (char *const *args, int fd)
 
int bu_backtrace (FILE *fp)
 

Detailed Description

Extract a backtrace of the current call stack.

Definition in file backtrace.c.

Macro Definition Documentation

#define BT_BUFSIZE   4096

Definition at line 66 of file backtrace.c.

Referenced by backtrace(), and bu_backtrace().

Function Documentation

HIDDEN void backtrace_sigchld ( int  signum)

Definition at line 92 of file backtrace.c.

References LIKELY.

Referenced by backtrace().

HIDDEN void backtrace_sigint ( int  signum)

Definition at line 103 of file backtrace.c.

References LIKELY.

Referenced by backtrace(), and bu_backtrace().

HIDDEN void backtrace ( char *const *  args,
int  fd 
)

Definition at line 115 of file backtrace.c.

References backtrace_sigchld(), backtrace_sigint(), BT_BUFSIZE, bu_debug, BU_DEBUG_ATTACH, BU_DEBUG_BACKTRACE, bu_log(), bu_strncmp(), memset(), and UNLIKELY.

Referenced by bu_backtrace().

Here is the call graph for this function: