|  | libexcept 1.1.19
    Stack trace along C++ exceptions | 
Implementation of the init_report_signal() function. More...
#include "libexcept/report_signal.h"#include "libexcept/stack_trace.h"#include <cstdint>#include <iostream>#include <memory>#include <signal.h>
Go to the source code of this file.
| Namespaces | |
| namespace | libexcept | 
| namespace | libexcept::anonymous_namespace{report_signal.cpp} | 
| Typedefs | |
| typedef std::shared_ptr< sigaction_t > | libexcept::anonymous_namespace{report_signal.cpp}::sigaction_ptr_t | 
| typedef struct sigaction | libexcept::anonymous_namespace{report_signal.cpp}::sigaction_t | 
| Functions | |
| void | libexcept::init_report_signal () | 
| Setup the callbacks. | |
| void | libexcept::anonymous_namespace{report_signal.cpp}::report_signal (int sig, siginfo_t *info, void *context) | 
| Variables | |
| sigaction_ptr_t | libexcept::anonymous_namespace{report_signal.cpp}::g_signal_actions [64] = {} | 
This file includes a function to setup a report handler on all the crashing signals such as SEGV. This allows your software to report the stack trace even in a release version.
Definition in file report_signal.cpp.
This document is part of the Snap! Websites Project.
Copyright by Made to Order Software Corp.