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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
#ifndef _PSXSEH_H_
#define _PSXSEH_H_
enum __unwind_reason_code;
struct __exception_record;
struct __dispatcher_context;
struct __unwind_exception;
struct __unwind_context;
typedef void __thread_context;
typedef enum __unwind_reason_code(*__unwind_personality_routine)(
int, int, uintptr_t,
struct __unwind_exception *,
struct __unwind_context *);
typedef void (*__unwind_exception_cleanup_routine)(
enum __unwind_reason_code,
struct __unwind_exception *);
struct __seh_vtbl {
int (*seh_exception_filter)(
struct __exception_record *,
void *,
__thread_context *,
struct __dispatcher_context *,
__unwind_personality_routine);
int (*seh_exception_handler)(
struct __exception_record *,
uintptr_t,
__thread_context *,
struct __dispatcher_context *);
int (*seh_unwind_raise_exception)(
struct __unwind_exception *);
void (*seh_unwind_delete_exception)(
struct __unwind_exception *);
void (*seh_unwind_resume)(
struct __unwind_exception *);
int (*seh_unwind_resume_or_rethrow)(
struct __unwind_exception *);
int (*seh_unwind_force)(
struct __unwind_exception *,
int (*)(
int, int, uintptr_t,
struct __unwind_exception *,
struct __unwind_context *,
void *),
void *);
void * (*seh_unwind_get_language_specific_data)(
struct __unwind_context *);
int (*seh_unwind_backtrace)(
enum __unwind_reason_code (*)(
struct __unwind_context *,
void *),
void *);
int (*seh_unwind_calltrace)();
uintptr_t (*seh_unwind_get_ip)(const struct __unwind_context *);
void (*seh_unwind_set_ip)(struct __unwind_context *, uintptr_t);
uintptr_t (*seh_unwind_get_gr)(const struct __unwind_context *, int);
void (*seh_unwind_set_gr)(struct __unwind_context *, int, uintptr_t);
uintptr_t (*seh_unwind_get_data_rel_base)(const struct __unwind_context *);
uintptr_t (*seh_unwind_get_text_rel_base)(const struct __unwind_context *);
uintptr_t (*seh_unwind_get_cfa)(const struct __unwind_context *);
uintptr_t (*seh_unwind_get_ip_info)(const struct __unwind_context *, int *);
uintptr_t (*seh_unwind_get_region_start)(const struct __unwind_context *);
void * (*seh_unwind_find_enclosing_function)(const void *);
int (*__seh_vtbl_reserved[12]);
};
#endif
|