debug/system: enable to crash handler
This commit is contained in:
parent
0fb910fb5f
commit
f5b702595f
@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
#include "debugger.hpp"
|
#include "debugger.hpp"
|
||||||
#include "except.hpp"
|
#include "except.hpp"
|
||||||
|
#include "crash.hpp"
|
||||||
|
|
||||||
#include "../backtrace.hpp"
|
#include "../backtrace.hpp"
|
||||||
#include "../log.hpp"
|
#include "../log.hpp"
|
||||||
@ -61,6 +62,8 @@ static void abort_with_trace (void)
|
|||||||
void
|
void
|
||||||
cruft::debug::init (void)
|
cruft::debug::init (void)
|
||||||
{
|
{
|
||||||
|
init_crash_handler ();
|
||||||
|
|
||||||
old_handler = std::set_terminate (abort_with_trace);
|
old_handler = std::set_terminate (abort_with_trace);
|
||||||
CHECK_NEQ (
|
CHECK_NEQ (
|
||||||
reinterpret_cast<void*> (old_handler),
|
reinterpret_cast<void*> (old_handler),
|
||||||
|
Loading…
Reference in New Issue
Block a user