From f119154a4144c84f3e3e1aceb98c2e18cebf9943 Mon Sep 17 00:00:00 2001 From: Josh Berdine Date: Fri, 7 Jun 2019 03:16:26 -0700 Subject: [PATCH] [sledge] Add cxa_default_handlers to models Summary: Include cxa_default_handlers.cpp to bring in definitions for __cxa_terminate_handler and __cxa_unexpected_handler. Reviewed By: kren1 Differential Revision: D15712980 fbshipit-source-id: f536930a8 --- sledge/model/cxxabi.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sledge/model/cxxabi.cpp b/sledge/model/cxxabi.cpp index 80c94785b..7d7197044 100644 --- a/sledge/model/cxxabi.cpp +++ b/sledge/model/cxxabi.cpp @@ -5,7 +5,7 @@ * LICENSE file in the root directory of this source tree. */ -#include "abort_message.cpp" +#include "cxa_default_handlers.cpp" #include "cxa_exception.cpp" #include "cxa_exception_storage.cpp" #include "cxa_guard.cpp" @@ -14,6 +14,8 @@ extern "C" { +void abort_message(const char* format, ...) { abort(); } + __attribute__((always_inline)) _Unwind_Reason_Code _Unwind_RaiseException(_Unwind_Exception* unwind_exception) { __llair_throw(thrown_object_from_cxa_exception(