HelenOS sources
This source file includes following definitions.
- _Unwind_ForcedUnwind
- _Unwind_Resume
- _Unwind_DeleteException
- _Unwind_GetGR
- _Unwind_SetGR
- _Unwind_GetIP
- _Unwind_SetIP
- _Unwind_GetLanguageSpecificData
- _Unwind_GetRegionStart
- __cxa_allocate_exception
- __cxa_free_exception
- __cxa_throw
- __cxa_get_exception_ptr
- __cxa_begin_catch
- __cxa_end_catch
- __cxa_rethrow
- __cxa_bad_cast
- __cxa_bad_typeid
- __cxa_throw_bad_array_new_length
- __gxx_personality_v0
#include <cassert>
#include <cstdint>
#include <cstdlib>
#include <typeinfo>
namespace __cxxabiv1
{
enum _Unwind_Reason_Code
{
_URC_NO_REASON = 0,
_URC_FOREIGN_EXCEPTION_CAUGHT = 1,
_URC_FATAL_PHASE2_ERROR = 2,
_URC_FATAL_PHASE1_ERROR = 3,
_URC_NORMAL_STOP = 4,
_URC_END_OF_STACK = 5,
_URC_HANDLER_FOUND = 6,
_URC_INSTALL_CONTEXT = 7,
_URC_CONTINUE_UNWIND = 8
};
struct _Unwind_Exception;
using _Unwind_Exception_Cleanup_Fn = void (*)(_Unwind_Reason_Code, _Unwind_Exception*);
struct _Unwind_Exception
{
std::uint64_t exception_class;
_Unwind_Exception_Cleanup_Fn exception_cleanup;
std::uint64_t private_1;
std::uint64_t private_2;
};
struct _Unwind_Context;
using _Unwind_Action = int;
namespace
{
const _Unwind_Action _UA_SEARCH_PHASE = 1;
const _Unwind_Action _UA_CLEANUP_PHASE = 2;
const _Unwind_Action _UA_HANDLER_FRAME = 4;
const _Unwind_Action _UA_FORCE_HANDLER = 8;
}
using _Unwind_Stop_Fn = _Unwind_Reason_Code(*)(
int, _Unwind_Action, std::uint64_t, _Unwind_Exception*,
_Unwind_Context*, void*
);
extern "C" _Unwind_Reason_Code _Unwind_ForcedUnwind(_Unwind_Exception*, _Unwind_Stop_Fn, void*)
{
return _URC_NO_REASON;
}
extern "C" void _Unwind_Resume(_Unwind_Exception*)
{
}
extern "C" void _Unwind_DeleteException(_Unwind_Exception*)
{
}
extern "C" std::uint64_t _Unwind_GetGR(_Unwind_Context*, int)
{
return 0;
}
extern "C" void _Unwind_SetGR(_Unwind_Context*, int, std::uint64_t)
{
}
extern "C" std::uint64_t _Unwind_GetIP(_Unwind_Context*)
{
return 0;
}
extern "C" void _Unwind_SetIP(_Unwind_Context*, std::uint64_t)
{
}
extern "C" std::uint64_t _Unwind_GetLanguageSpecificData(_Unwind_Context*)
{
return 0;
}
extern "C" std::uint64_t _Unwind_GetRegionStart(_Unwind_Context*)
{
return 0;
}
using __personality_routine = _Unwind_Reason_Code(*)(
int, _Unwind_Action, std::uint64_t, _Unwind_Exception*,
_Unwind_Context*, void*
);
struct __cxa_exception
{
std::type_info* exceptionType;
void (*exceptionDestructor)(void*);
void (*unexpectedHandler)();
void (*terminateHandler)();
__cxa_exception* nextException;
int handlerCount;
int handlerSwitchValue;
const char* actionRecord;
const char* languageSpecificData;
void* catchTemp;
void* adjujstedPtr;
_Unwind_Exception unwindHeader;
};
struct __cxa_eh_globals
{
__cxa_exception* caughtExceptions;
unsigned int uncaughtExceptions;
};
extern "C" __cxa_eh_globals* __cxa_get_globals();
extern "C" __cxa_eh_globals* __cxa_get_globals_fast();
extern "C" void* __cxa_allocate_exception(std::size_t thrown_size)
{
__unimplemented();
return nullptr;
}
extern "C" void __cxa_free_exception(void* thrown_exception)
{
__unimplemented();
}
extern "C" void __cxa_throw(void* thrown_exception, std::type_info* tinfo, void (*dest)(void*))
{
__unimplemented();
}
extern "C" void* __cxa_get_exception_ptr(void* exception_object)
{
__unimplemented();
return nullptr;
}
extern "C" void* __cxa_begin_catch(void* exception_object)
{
__unimplemented();
return nullptr;
}
extern "C" void __cxa_end_catch()
{
__unimplemented();
}
extern "C" void __cxa_rethrow()
{
__unimplemented();
}
extern "C" void __cxa_bad_cast()
{
__unimplemented();
}
extern "C" void __cxa_bad_typeid()
{
__unimplemented();
}
extern "C" void __cxa_throw_bad_array_new_length()
{
__unimplemented();
}
extern "C" _Unwind_Reason_Code __gxx_personality_v0(
int, _Unwind_Action, unsigned,
struct _Unwind_Exception*, struct _Unwind_Context*
)
{
__unimplemented();
return _URC_NO_REASON;
}
}
HelenOS homepage, sources at GitHub