libcsdbg
1.28
C++ exception (and generic) stack trace debug library
|
Library configuration, type, macro and global variable definition. More...
#include <typeinfo>
#include <iostream>
#include <cstdarg>
#include <cstring>
#include <climits>
#include <cstdlib>
#include <cstdio>
#include <cerrno>
#include <cctype>
#include <pthread.h>
#include <unistd.h>
#include <cxxabi.h>
#include <regex.h>
#include <link.h>
#include <bfd.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/file.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <termios.h>
#include <fcntl.h>
#include <sys/mman.h>
Go to the source code of this file.
Namespaces | |
csdbg | |
Complete library namespace. | |
Macros | |
#define | CSDBG_DBGL_ERROR 0x01 |
Error debug level. More... | |
#define | CSDBG_DBGL_WARNING 0x02 |
Warning debug level. More... | |
#define | CSDBG_DBGL_INFO 0x04 |
Generic debug level. More... | |
#define | CSDBG_DBGL_LOW (CSDBG_DBGL_ERROR) |
Low debug level (only errors) More... | |
#define | CSDBG_DBGL_MEDIUM (CSDBG_DBGL_LOW | CSDBG_DBGL_WARNING) |
Medium debug level (errors and warnings) More... | |
#define | CSDBG_DBGL_HIGH (CSDBG_DBGL_MEDIUM | CSDBG_DBGL_INFO) |
High debug level (all messages) More... | |
#define | CSDBG_DBG_LEVEL CSDBG_DBGL_HIGH |
Selected debug level. More... | |
#define | __D_ASSERT(x) |
Assertion macro. More... | |
#define | INFO_TAG_FG 61 |
Tag color for informational messages. More... | |
#define | WARNING_TAG_FG 60 |
Tag color for warning messages. More... | |
#define | ERROR_TAG_FG 9 |
Tag color for error and exception messages. More... | |
#define | HLT_NUMBER_FG 208 |
Highlighter color for numbers (any base) More... | |
#define | HLT_KEYWORD_FG 61 |
Highlighter color for C++ keywords. More... | |
#define | HLT_TYPE_FG 105 |
Highlighter color for C++ intrinsic types. More... | |
#define | HLT_FILE_FG 250 |
Highlighter color for C++ files. More... | |
#define | HLT_SCOPE_FG 250 |
Highlighter color for C++ ABI scopes. More... | |
#define | HLT_FUNCTION_FG 214 |
Highlighter color for C++ function names. More... | |
#define | likely(expr) __builtin_expect((expr), true) |
Offer a hint (positive) to the pipeline branch predictor. More... | |
#define | unlikely(expr) __builtin_expect((expr), false) |
Offer a hint (negative) to the pipeline branch predictor. More... | |
#define | precache_r(addr) __builtin_prefetch((addr), 0, 3) |
Prefetch a block from memory to the cache (for read) More... | |
#define | precache_w(addr) __builtin_prefetch((addr), 1, 3) |
Prefetch a block from memory to the cache (for write) More... | |
Typedefs | |
typedef char | csdbg::i8 |
8-bit signed integer More... | |
typedef short | csdbg::i16 |
16-bit signed integer More... | |
typedef int | csdbg::i32 |
32-bit signed integer More... | |
typedef long long | csdbg::i64 |
64-bit signed integer More... | |
typedef unsigned char | csdbg::u8 |
8-bit unsigned integer More... | |
typedef unsigned short | csdbg::u16 |
16-bit unsigned integer More... | |
typedef unsigned int | csdbg::u32 |
32-bit unsigned integer More... | |
typedef unsigned long long | csdbg::u64 |
64-bit unsigned integer More... | |
typedef struct stat | csdbg::fileinfo_t |
File metadata. More... | |
typedef unsigned long long | csdbg::mem_addr_t |
64-bit memory address More... | |
typedef struct sockaddr_in | csdbg::tcp_addr_t |
TCP IPv4 address. More... | |
typedef struct sockaddr | csdbg::ip_addr_t |
IP address. More... | |
typedef void(* | csdbg::modsym_t )(void *, void *) |
Plugin callback. More... | |
typedef u8 | csdbg::color_t |
VT100 terminal color. More... | |
typedef u16 | csdbg::attrset_t |
VT100 attribute bitmask. More... | |
Variables | |
static const i8 | csdbg::g_prefix [] = "/usr/local" |
Library installation prefix. More... | |
static const i8 | csdbg::g_libs_env [] = "CSDBG_LIBS" |
DSO filtering shell variable. More... | |
static const u16 | csdbg::g_major = 1 |
Library version major. More... | |
static const u16 | csdbg::g_minor = 28 |
Library version minor. More... | |
static const u16 | csdbg::g_memblock_sz = 64 |
Block size (allocation alignment) More... | |
static const i32 | csdbg::g_ldp_port = 4242 |
LDP service port. More... | |
static const i8 | csdbg::g_trace_syntax [] = "[ \t\n\r\\{\\}\\(\\)\\*&,:<>]+" |
C++ stack trace syntax. More... | |
Library configuration, type, macro and global variable definition.
Definition in file config.hpp.