|
vg
tools for working with variation graphs
|
#include "crash.hpp"#include "version.hpp"#include <pthread.h>#include <errno.h>#include <cxxabi.h>#include <execinfo.h>#include <ucontext.h>#include <dlfcn.h>#include <cstring>#include <limits.h>#include <cstdlib>#include <unistd.h>#include <string>#include <iostream>#include <fstream>#include <sstream>#include <signal.h>#include <typeinfo>#include <backward.hpp>#include <omp.h>Namespaces | |
| namespace | vg |
Macros | |
| #define | _POSIX_C_SOURCE 200809L |
| #define | _XOPEN_SOURCE 1 |
| #define | BACKWARD_HAS_DW 1 |
Functions | |
| void | vg::set_crash_context (const std::string &message) |
| User code should call this when it has context for a failure in its thread. | |
| void | vg::clear_crash_context () |
| User code should call this when it wants to clear context for a failure in its thread. | |
| void | vg::report_library (ostream &out, Dl_info &address_library, void *ip) |
| void | vg::stacktrace_manually (ostream &out, int signalNumber, void *ip, void **bp) |
| void | vg::emit_stacktrace (int signalNumber, siginfo_t *signalInfo, void *signalContext) |
| Emit a stack trace when something bad happens. Add as a signal handler with sigaction. | |
| void | vg::enable_crash_handling () |
| Main should call this to turn on our stack tracing support. | |
| void | vg::with_exception_handling (const std::function< void(void)> &body) |
| User code should call this to get all its exceptions handled. | |
| void | vg::report_exception (const std::exception &ex) |
| void | vg::crash_unless_failed (const char *condition_string, const char *file, int line, const char *function) |
| crash_unless calls into this function for a real implementation, only when the condition has failed. | |
Variables | |
| std::string | vg::stored_crash_context |
| Each thread stores a string of its crash context locally for exception handling. | |
| const char * | vg::var = "VG_FULL_TRACEBACK" |
| bool | vg::fullTrace = false |
| const char * | vg::ISSUE_URL = "https://github.com/vgteam/vg/issues/new/choose" |
| #define _POSIX_C_SOURCE 200809L |
| #define _XOPEN_SOURCE 1 |
| #define BACKWARD_HAS_DW 1 |
1.17.0