libexcept 1.1.19
Stack trace along C++ exceptions
Namespaces | Typedefs | Functions | Variables
report_signal.cpp File Reference

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>
Include dependency graph for report_signal.cpp:

Go to the source code of this file.

Namespaces

namespace  libexcept
 
namespace  libexcept::anonymous_namespace{report_signal.cpp}
 

Typedefs

typedef std::shared_ptr< sigaction_tlibexcept::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] = {}
 

Detailed Description

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.

Note
If you can link against the eventdispatcher library too, you should instead consider using that library signal handlers.

Definition in file report_signal.cpp.

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.