Skip to content

Commit 68e9994

Browse files
committed
Added new method GetCurrentExceptionContext
1 parent bf32dbc commit 68e9994

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Main/StackWalker/StackWalker.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,11 @@ bool StackWalker::SetTargetProcess(DWORD dwProcessId, HANDLE hProcess)
968968
return true;
969969
}
970970

971+
PCONTEXT StackWalker::GetCurrentExceptionContext()
972+
{
973+
return get_current_exception_context();
974+
}
975+
971976
BOOL StackWalker::LoadModules()
972977
{
973978
if (this->m_sw == NULL)

Main/StackWalker/StackWalker.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class StackWalker
9898
OptionsAll = 0x3F
9999
} StackWalkOptions;
100100

101-
StackWalker(ExceptType extype, int options, PEXCEPTION_POINTERS exp = NULL);
101+
StackWalker(ExceptType extype, int options = OptionsAll, PEXCEPTION_POINTERS exp = NULL);
102102

103103
StackWalker(int options = OptionsAll, // 'int' is by design, to combine the enum-flags
104104
LPCSTR szSymPath = NULL,
@@ -113,6 +113,8 @@ class StackWalker
113113

114114
bool SetTargetProcess(DWORD dwProcessId, HANDLE hProcess);
115115

116+
PCONTEXT GetCurrentExceptionContext();
117+
116118
private:
117119
bool Init(ExceptType extype, int options, LPCSTR szSymPath, DWORD dwProcessId,
118120
HANDLE hProcess, PEXCEPTION_POINTERS exp = NULL);

0 commit comments

Comments
 (0)