#include <Backtrace.hh>
|
static void | Handler (int, siginfo_t *, void *) |
|
static void | Message (int, siginfo_t *, std::ostream &) |
|
static void | ExitAction (int) |
|
static int | Enable (const std::string &) |
|
static int | Enable (const signal_set_t &=DefaultSignals()) |
|
static int | Disable (signal_set_t={}) |
|
static int | GetSignal (const std::string &) |
|
static std::string | Description (int) |
|
template<typename FuncT > |
static void | AddExitAction (FuncT &&) |
|
template<size_t Depth, size_t Offset = 0, typename FuncT = frame_func_t> |
static std::array< ResultOf_t< FuncT, const char * >, Depth > | GetMangled (FuncT &&func=FrameFunctor()) |
|
template<size_t Depth, size_t Offset = 0, typename FuncT = frame_func_t> |
static std::array< ResultOf_t< FuncT, const char * >, Depth > | GetDemangled (FuncT &&func=FrameFunctor()) |
|
static frame_func_t & | FrameFunctor () |
|
static signal_set_t & | DefaultSignals () |
|
static actions & | GetData () |
|
Definition at line 715 of file Backtrace.hh.
◆ exit_action_t
◆ frame_func_t
◆ sigaction_t
◆ siginfo_t
◆ signal_set_t
◆ AddExitAction()
template<typename FuncT >
static void PTL::Backtrace::AddExitAction |
( |
FuncT && | | ) |
|
|
inlinestatic |
◆ DefaultSignals()
Definition at line 784 of file Backtrace.hh.
785 {
787 return _instance;
788 }
std::set< int > signal_set_t
◆ Description()
static std::string PTL::Backtrace::Description |
( |
int | | ) |
|
|
inlinestatic |
◆ Disable()
◆ Enable() [1/2]
◆ Enable() [2/2]
static int PTL::Backtrace::Enable |
( |
const std::string & | | ) |
|
|
inlinestatic |
◆ ExitAction()
static void PTL::Backtrace::ExitAction |
( |
int | | ) |
|
|
inlinestatic |
◆ FrameFunctor()
Definition at line 777 of file Backtrace.hh.
778 {
779 static frame_func_t _instance = [](
const char* _s) {
return std::string(_s); };
780 return _instance;
781 }
std::function< std::string(const char *)> frame_func_t
◆ GetData()
static actions & PTL::Backtrace::GetData |
( |
| ) |
|
|
inlinestatic |
Definition at line 790 of file Backtrace.hh.
791 {
792 static auto _instance = actions{};
793 return _instance;
794 }
◆ GetDemangled()
template<size_t Depth, size_t Offset = 0, typename FuncT = frame_func_t>
static std::array< ResultOf_t< FuncT, const char * >, Depth > PTL::Backtrace::GetDemangled |
( |
FuncT && | func = FrameFunctor() | ) |
|
|
inlinestatic |
Definition at line 767 of file Backtrace.hh.
769 {
771 auto ret = std::array<type, Depth>{};
772 ret.fill(func(""));
773 return ret;
774 }
typename std::result_of< FuncT(ArgTypes...)>::type ResultOf_t
◆ GetMangled()
template<size_t Depth, size_t Offset = 0, typename FuncT = frame_func_t>
static std::array< ResultOf_t< FuncT, const char * >, Depth > PTL::Backtrace::GetMangled |
( |
FuncT && | func = FrameFunctor() | ) |
|
|
inlinestatic |
Definition at line 757 of file Backtrace.hh.
759 {
761 auto ret = std::array<type, Depth>{};
762 ret.fill(func(""));
763 return ret;
764 }
◆ GetSignal()
static int PTL::Backtrace::GetSignal |
( |
const std::string & | | ) |
|
|
inlinestatic |
◆ Handler()
static void PTL::Backtrace::Handler |
( |
int | , |
|
|
siginfo_t * | , |
|
|
void * | ) |
|
inlinestatic |
◆ Message()
static void PTL::Backtrace::Message |
( |
int | , |
|
|
siginfo_t * | , |
|
|
std::ostream & | ) |
|
inlinestatic |
The documentation for this class was generated from the following file: