Skip to content

Commit

Permalink
Add UnhandledExceptionHandlerUnix Stub (dotnet/coreclr#8425)
Browse files Browse the repository at this point in the history
FuncEvalHijack in dbghelpers.S uses UnhandledExceptionHandlerUnix as a
personality routine, but UnhandledExceptionHandlerUnix is not avaiable
for x86 (UnhandledExceptionHandlerUnix is available only when
WIN64EXCEPTIONS which is not defined for x86).

This commit adds UnhandledExceptionHandlerUnix to fix dangling
reference.

Commit migrated from dotnet/coreclr@4e21d57
  • Loading branch information
parjong authored and janvorli committed Dec 6, 2016
1 parent 6b29155 commit b965da9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/coreclr/src/vm/i386/unixstubs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,19 @@ extern "C"
void STDCALL JIT_ProfilerEnterLeaveTailcallStub(UINT_PTR ProfilerHandle)
{
}

_Unwind_Reason_Code
UnhandledExceptionHandlerUnix(
IN int version,
IN _Unwind_Action action,
IN uint64_t exceptionClass,
IN struct _Unwind_Exception *exception,
IN struct _Unwind_Context *context
)
{
PORTABILITY_ASSERT("UnhandledExceptionHandlerUnix");
return _URC_FATAL_PHASE1_ERROR;
}
};

VOID __cdecl PopSEHRecords(LPVOID pTargetSP)
Expand Down

0 comments on commit b965da9

Please sign in to comment.