SyTen
backtrace.cpp File Reference

Implementation for file inc/util/backtrace.h. More...

#include <execinfo.h>
#include <iomanip>
#include <array>
#include <memory>
#include <cxxabi.h>
#include "inc/util/backtrace.h"
#include "inc/util/output.h"
#include "inc/util/log.h"
#include "inc/util/envvars.h"
#include <dlfcn.h>
+ Include dependency graph for backtrace.cpp:

Namespaces

 syten
 Syten namespace.
 

Macros

#define _GNU_SOURCE   /* See feature_test_macros(7) */
 Needed to properly use dlfcn.h. More...
 

Functions

std::tuple< std::string, std::string, std::string, std::stringsyten::demangle_symbol (const char *symbol_name)
 Returns a tuple <module, demangled_name, location, hexoffset> More...
 
std::string syten::exec_get_cout (std::string const &command)
 Executes the supplied command and writes the STDOUT from the command into the supplied string. More...
 
void syten::print_backtrace ()
 Prints a backtrace using logGW(). More...
 

Detailed Description

Implementation for file inc/util/backtrace.h.