| 29 | #include <boost/stacktrace.hpp> |
| 30 | |
| 31 | void my_signal_handler(int signum) { |
| 32 | ::signal(signum, SIG_DFL); |
| 33 | |
| 34 | // Outputs nothing or trash on majority of platforms |
| 35 | boost::stacktrace::safe_dump_to("./backtrace.dump"); |
| 36 | |
| 37 | ::raise(SIGABRT); |
| 38 | } |
| 39 | //] |
| 40 | |
| 41 | void setup_handlers() { |
nothing calls this directly
no outgoing calls
no test coverage detected