1
1
/*
2
- * Copyright (c) 2004, 2019 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2004, 2022 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
29
29
#ifdef AMD64
30
30
typedef unsigned char UBYTE;
31
31
32
- #if _MSC_VER < 1700
33
-
34
- /* Not needed for VS2012 compiler, comes from winnt.h. */
35
- #define UNW_FLAG_EHANDLER 0x01
36
- #define UNW_FLAG_UHANDLER 0x02
37
- #define UNW_FLAG_CHAININFO 0x04
38
-
39
- #endif
40
-
41
32
// This structure is used to define an UNWIND_INFO that
42
33
// only has an ExceptionHandler. There are no UnwindCodes
43
34
// declared.
@@ -55,7 +46,6 @@ typedef struct _UNWIND_INFO_EH_ONLY {
55
46
OPTIONAL ULONG ExceptionData[1 ];
56
47
} UNWIND_INFO_EH_ONLY, *PUNWIND_INFO_EH_ONLY;
57
48
58
-
59
49
/*
60
50
typedef struct _RUNTIME_FUNCTION {
61
51
ULONG BeginAddress;
@@ -64,35 +54,6 @@ typedef struct _RUNTIME_FUNCTION {
64
54
} RUNTIME_FUNCTION, *PRUNTIME_FUNCTION;
65
55
*/
66
56
67
- #if _MSC_VER < 1700
68
-
69
- /* Not needed for VS2012 compiler, comes from winnt.h. */
70
- typedef struct _DISPATCHER_CONTEXT {
71
- ULONG64 ControlPc;
72
- ULONG64 ImageBase;
73
- PRUNTIME_FUNCTION FunctionEntry;
74
- ULONG64 EstablisherFrame;
75
- ULONG64 TargetIp;
76
- PCONTEXT ContextRecord;
77
- // PEXCEPTION_ROUTINE LanguageHandler;
78
- char * LanguageHandler; // double dependency problem
79
- PVOID HandlerData;
80
- } DISPATCHER_CONTEXT, *PDISPATCHER_CONTEXT;
81
-
82
- #endif
83
-
84
- #if _MSC_VER < 1500
85
-
86
- /* Not needed for VS2008 compiler, comes from winnt.h. */
87
- typedef EXCEPTION_DISPOSITION (*PEXCEPTION_ROUTINE) (
88
- IN PEXCEPTION_RECORD ExceptionRecord,
89
- IN ULONG64 EstablisherFrame,
90
- IN OUT PCONTEXT ContextRecord,
91
- IN OUT PDISPATCHER_CONTEXT DispatcherContext
92
- );
93
-
94
- #endif
95
-
96
57
#endif // AMD64
97
58
98
59
#endif // OS_CPU_WINDOWS_X86_UNWIND_WINDOWS_X86_HPP
0 commit comments