carl  24.04
Computer ARithmetic Library
debug.cpp File Reference
#include "debug.h"
#include <boost/core/demangle.hpp>
#include <boost/stacktrace.hpp>
#include <memory>
#include <sstream>
#include <cxxabi.h>
#include <dlfcn.h>
#include <execinfo.h>
Include dependency graph for debug.cpp:

Go to the source code of this file.

Namespaces

 carl
 carl is the main namespace for the library.
 

Macros

#define BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED
 

Functions

std::string carl::demangle (const char *name)
 
void carl::printStacktrace ()
 Uses GDB to print a stack trace. More...
 
std::string carl::callingFunction ()
 
static void carl::handle_signal (int signal)
 Actual signal handler. More...
 
static bool carl::install_signal_handler () noexcept
 Installs the signal handler. More...
 

Variables

std::string carl::last_assertion_string
 Stores a textual representation of the last assertion that was registered via REGISTER_ASSERT. More...
 
int carl::last_assertion_code = 23
 Stores an integer representation of the last assertion that was registered via REGISTER_ASSERT. More...
 
static bool carl::signal_installed = install_signal_handler()
 Static variable that ensures that install_signal_handler is called. More...
 

Macro Definition Documentation

◆ BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED

#define BOOST_STACKTRACE_GNU_SOURCE_NOT_REQUIRED

Definition at line 5 of file debug.cpp.