BRL-CAD

Debugging definitions. More...

Collaboration diagram for Debugging:

Files

file  debug.h
 

Macros

#define BU_DEBUG_OFF   0 /* No debugging */
 
#define BU_DEBUG_COREDUMP   0x00000001 /* bu_bomb() should dump core on exit */
 
#define BU_DEBUG_UNUSED_0   0x00000002 /* Unallocated */
 
#define BU_DEBUG_UNUSED_1   0x00000004 /* Unallocated */
 
#define BU_DEBUG_UNUSED_2   0x00000008 /* Unallocated */
 
#define BU_DEBUG_PARALLEL   0x00000010 /* Parallel debug logging */
 
#define BU_DEBUG_UNUSED_3   0x00000020 /* Unallocated */
 
#define BU_DEBUG_BACKTRACE   0x00000040 /* Log backtrace details during abnormal exit */
 
#define BU_DEBUG_ATTACH   0x00000080 /* Waits for a debugger to attach during a crash */
 
#define BU_DEBUG_MATH   0x00000100 /* Fundamental math routines (plane.c, mat.c) */
 
#define BU_DEBUG_PTBL   0x00000200 /* bu_ptbl_() logging */
 
#define BU_DEBUG_AVS   0x00000400 /* bu_avs_() logging */
 
#define BU_DEBUG_MAPPED_FILE   0x00000800 /* bu_mapped_file logging */
 
#define BU_DEBUG_PATHS   0x00001000 /* File and path debug logging */
 
#define BU_DEBUG_UNUSED_4   0x00002000 /* Unallocated */
 
#define BU_DEBUG_UNUSED_5   0x00004000 /* Unallocated */
 
#define BU_DEBUG_UNUSED_6   0x00008000 /* Unallocated */
 
#define BU_DEBUG_TABDATA   0x00010000 /* LIBBN: tabdata */
 
#define BU_DEBUG_UNUSED_7   0x00020000 /* Unallocated */
 
#define BU_DEBUG_UNUSED_8   0x00040000 /* Unallocated */
 
#define BU_DEBUG_UNUSED_9   0x00080000 /* Unallocated */
 
#define BU_DEBUG_FORMAT
 

Variables

unsigned int bu_debug
 

Detailed Description

Debugging definitions.

Macro Definition Documentation

◆ BU_DEBUG_OFF

#define BU_DEBUG_OFF   0 /* No debugging */

Section for BU_DEBUG values

These can be set from the command-line of RT-compatible programs using the "-!" option.

These definitions are each for one bit.

Definition at line 51 of file debug.h.

◆ BU_DEBUG_COREDUMP

#define BU_DEBUG_COREDUMP   0x00000001 /* bu_bomb() should dump core on exit */

Definition at line 53 of file debug.h.

◆ BU_DEBUG_UNUSED_0

#define BU_DEBUG_UNUSED_0   0x00000002 /* Unallocated */

Definition at line 54 of file debug.h.

◆ BU_DEBUG_UNUSED_1

#define BU_DEBUG_UNUSED_1   0x00000004 /* Unallocated */

Definition at line 55 of file debug.h.

◆ BU_DEBUG_UNUSED_2

#define BU_DEBUG_UNUSED_2   0x00000008 /* Unallocated */

Definition at line 56 of file debug.h.

◆ BU_DEBUG_PARALLEL

#define BU_DEBUG_PARALLEL   0x00000010 /* Parallel debug logging */

Definition at line 58 of file debug.h.

◆ BU_DEBUG_UNUSED_3

#define BU_DEBUG_UNUSED_3   0x00000020 /* Unallocated */

Definition at line 59 of file debug.h.

◆ BU_DEBUG_BACKTRACE

#define BU_DEBUG_BACKTRACE   0x00000040 /* Log backtrace details during abnormal exit */

Definition at line 60 of file debug.h.

◆ BU_DEBUG_ATTACH

#define BU_DEBUG_ATTACH   0x00000080 /* Waits for a debugger to attach during a crash */

Definition at line 61 of file debug.h.

◆ BU_DEBUG_MATH

#define BU_DEBUG_MATH   0x00000100 /* Fundamental math routines (plane.c, mat.c) */

Definition at line 63 of file debug.h.

◆ BU_DEBUG_PTBL

#define BU_DEBUG_PTBL   0x00000200 /* bu_ptbl_() logging */

Definition at line 64 of file debug.h.

◆ BU_DEBUG_AVS

#define BU_DEBUG_AVS   0x00000400 /* bu_avs_() logging */

Definition at line 65 of file debug.h.

◆ BU_DEBUG_MAPPED_FILE

#define BU_DEBUG_MAPPED_FILE   0x00000800 /* bu_mapped_file logging */

Definition at line 66 of file debug.h.

◆ BU_DEBUG_PATHS

#define BU_DEBUG_PATHS   0x00001000 /* File and path debug logging */

Definition at line 68 of file debug.h.

◆ BU_DEBUG_UNUSED_4

#define BU_DEBUG_UNUSED_4   0x00002000 /* Unallocated */

Definition at line 69 of file debug.h.

◆ BU_DEBUG_UNUSED_5

#define BU_DEBUG_UNUSED_5   0x00004000 /* Unallocated */

Definition at line 70 of file debug.h.

◆ BU_DEBUG_UNUSED_6

#define BU_DEBUG_UNUSED_6   0x00008000 /* Unallocated */

Definition at line 71 of file debug.h.

◆ BU_DEBUG_TABDATA

#define BU_DEBUG_TABDATA   0x00010000 /* LIBBN: tabdata */

Definition at line 73 of file debug.h.

◆ BU_DEBUG_UNUSED_7

#define BU_DEBUG_UNUSED_7   0x00020000 /* Unallocated */

Definition at line 74 of file debug.h.

◆ BU_DEBUG_UNUSED_8

#define BU_DEBUG_UNUSED_8   0x00040000 /* Unallocated */

Definition at line 75 of file debug.h.

◆ BU_DEBUG_UNUSED_9

#define BU_DEBUG_UNUSED_9   0x00080000 /* Unallocated */

Definition at line 76 of file debug.h.

◆ BU_DEBUG_FORMAT

#define BU_DEBUG_FORMAT
Value:
"\020" /* print hex */ \
"\024UNUSED_9" \
"\023UNUSED_8" \
"\022UNUSED_7" \
"\021TABDATA" \
"\020UNUSED_6" \
"\017UNUSED_5" \
"\016UNUSED_4" \
"\015PATHS" \
"\014MAPPED_FILE" \
"\013AVS" \
"\012PTBL" \
"\011MATH" \
"\010ATTACH" \
"\7BACKTRACE" \
"\6UNUSED_3" \
"\5PARALLEL" \
"\4UNUSED_2" \
"\3UNUSED_1" \
"\2UNUSED_0" \
"\1COREDUMP"

Definition at line 79 of file debug.h.

Variable Documentation

◆ bu_debug

unsigned int bu_debug
extern

controls the libbu debug level