summaryrefslogtreecommitdiff
path: root/src/pal/src/exception/seh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pal/src/exception/seh.cpp')
-rw-r--r--src/pal/src/exception/seh.cpp25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/pal/src/exception/seh.cpp b/src/pal/src/exception/seh.cpp
index 5cfea0c24f..1d3960519c 100644
--- a/src/pal/src/exception/seh.cpp
+++ b/src/pal/src/exception/seh.cpp
@@ -58,7 +58,7 @@ PHARDWARE_EXCEPTION_SAFETY_CHECK_FUNCTION g_safeExceptionCheckFunction = NULL;
PGET_GCMARKER_EXCEPTION_CODE g_getGcMarkerExceptionCode = NULL;
-// Return address of the SEHProcessException, which is used to enable walking over
+// Return address of the SEHProcessException, which is used to enable walking over
// the signal handler trampoline on some Unixes where the libunwind cannot do that.
void* g_SEHProcessExceptionReturnAddress = NULL;
@@ -78,7 +78,7 @@ Return value :
TRUE if SEH support initialization succeeded
FALSE otherwise
--*/
-BOOL
+BOOL
SEHInitialize (CPalThread *pthrCurrent, DWORD flags)
{
if (!SEHInitializeSignals(pthrCurrent, flags))
@@ -101,9 +101,9 @@ Parameters :
None
(no return value)
-
+
--*/
-VOID
+VOID
SEHCleanup()
{
TRACE("Cleaning up SEH\n");
@@ -127,7 +127,7 @@ Return value:
None
--*/
VOID
-PALAPI
+PALAPI
PAL_SetHardwareExceptionHandler(
IN PHARDWARE_EXCEPTION_HANDLER exceptionHandler,
IN PHARDWARE_EXCEPTION_SAFETY_CHECK_FUNCTION exceptionCheckFunction)
@@ -149,7 +149,7 @@ Return value:
None
--*/
VOID
-PALAPI
+PALAPI
PAL_SetGetGcMarkerExceptionCode(
IN PGET_GCMARKER_EXCEPTION_CODE getGcMarkerExceptionCode)
{
@@ -172,7 +172,7 @@ Parameters:
PAL_SEHException* ex - the exception to throw.
--*/
VOID
-PALAPI
+PALAPI
PAL_ThrowExceptionFromContext(CONTEXT* context, PAL_SEHException* ex)
{
// We need to make a copy of the exception off stack, since the "ex" is located in one of the stack
@@ -244,7 +244,7 @@ Parameters:
PAL_SEHException* exception
Return value:
- Returns TRUE if the exception happened in managed code and the execution should
+ Returns TRUE if the exception happened in managed code and the execution should
continue (with possibly modified context).
Returns FALSE if the exception happened in managed code and it was not handled.
In case the exception was handled by calling a catch handler, it doesn't return at all.
@@ -364,8 +364,8 @@ PAL_ERROR SEHDisable(CPalThread *pthrCurrent)
--*/
-extern "C"
-void
+extern "C"
+void
PALAPI
PAL_CatchHardwareExceptionHolderEnter()
{
@@ -403,21 +403,20 @@ NativeExceptionHolderBase *t_nativeExceptionHolderHead = nullptr;
extern "C"
NativeExceptionHolderBase **
-PALAPI
PAL_GetNativeExceptionHolderHead()
{
return &t_nativeExceptionHolderHead;
}
NativeExceptionHolderBase *
-NativeExceptionHolderBase::FindNextHolder(NativeExceptionHolderBase *currentHolder, void *stackLowAddress, void *stackHighAddress)
+NativeExceptionHolderBase::FindNextHolder(NativeExceptionHolderBase *currentHolder, PVOID stackLowAddress, PVOID stackHighAddress)
{
NativeExceptionHolderBase *holder = (currentHolder == nullptr) ? t_nativeExceptionHolderHead : currentHolder->m_next;
while (holder != nullptr)
{
if (((void *)holder >= stackLowAddress) && ((void *)holder < stackHighAddress))
- {
+ {
return holder;
}
// Get next holder