debug/system: enable to crash handler

This commit is contained in:
Danny Robson 2019-10-10 17:32:46 +11:00
parent 0fb910fb5f
commit f5b702595f

View File

@ -10,6 +10,7 @@
#include "debugger.hpp"
#include "except.hpp"
#include "crash.hpp"
#include "../backtrace.hpp"
#include "../log.hpp"
@ -61,6 +62,8 @@ static void abort_with_trace (void)
void
cruft::debug::init (void)
{
init_crash_handler ();
old_handler = std::set_terminate (abort_with_trace);
CHECK_NEQ (
reinterpret_cast<void*> (old_handler),