blob: 1c6b27dd146a55df2d1a94550192004092a95a5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//
#ifndef __unwinder_arm__
#define __unwinder_arm__
#include "unwinder.h"
//---------------------------------------------------------------------------------------
//
// See the comment for the base class code:OOPStackUnwinder.
//
class OOPStackUnwinderArm : public OOPStackUnwinder
{
public:
// Unwind the given CONTEXT to the caller CONTEXT. The CONTEXT will be overwritten.
BOOL Unwind(T_CONTEXT * pContext);
//
// Everything below comes from dbghelp.dll.
//
protected:
HRESULT UnwindPrologue(__in DWORD64 ImageBase,
__in DWORD64 ControlPc,
__in DWORD64 FrameBase,
__in _PIMAGE_RUNTIME_FUNCTION_ENTRY FunctionEntry,
__inout PT_CONTEXT ContextRecord);
HRESULT VirtualUnwind(__in DWORD64 ImageBase,
__in DWORD64 ControlPc,
__in _PIMAGE_RUNTIME_FUNCTION_ENTRY FunctionEntry,
__inout PT_CONTEXT ContextRecord,
__out PDWORD64 EstablisherFrame);
DWORD64 LookupPrimaryUnwindInfo
(__in _PIMAGE_RUNTIME_FUNCTION_ENTRY FunctionEntry,
__in DWORD64 ImageBase,
__out _PIMAGE_RUNTIME_FUNCTION_ENTRY PrimaryEntry);
_PIMAGE_RUNTIME_FUNCTION_ENTRY SameFunction
(__in _PIMAGE_RUNTIME_FUNCTION_ENTRY FunctionEntry,
__in DWORD64 ImageBase,
__in DWORD64 ControlPc,
__out _PIMAGE_RUNTIME_FUNCTION_ENTRY FunctionReturnBuffer);
};
#endif // __unwinder_arm__
|