summaryrefslogtreecommitdiff
path: root/gcc/unwind-midipix.h
blob: e27ab617aa4c7eed8e11f7b4cfa38e901e5d93c3 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#ifndef _UNWIND_H
#define _UNWIND_H

#include <stdint.h>
#include <sys/unwind.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef long                                    _sleb128_t;
typedef unsigned long                           _uleb128_t;

typedef uintptr_t                               _Unwind_Word;
typedef intptr_t                                _Unwind_Sword;

typedef uintptr_t                               _Unwind_Ptr;
typedef uintptr_t                               _Unwind_Internal_Ptr;
typedef uintptr_t                               _Unwind_Exception_Class;

typedef int                                     _Unwind_Action;
typedef enum __unwind_reason_code               _Unwind_Reason_Code;

typedef __unwind_personality_routine            _Unwind_Personality_Fn;
typedef __unwind_exception_cleanup_routine      _Unwind_Exception_Cleanup_Fn;


#define _Unwind_Exception               __unwind_exception
#define _Unwind_Context                 __unwind_context

#define _URC_NO_REASON                  __URC_NO_REASON
#define _URC_FOREIGN_EXCEPTION_CAUGHT   __URC_FOREIGN_EXCEPTION
#define _URC_FATAL_PHASE2_ERROR         __URC_FATAL_PHASE2
#define _URC_FATAL_PHASE1_ERROR         __URC_FATAL_PHASE1
#define _URC_NORMAL_STOP                __URC_NORMAL_STOP
#define _URC_END_OF_STACK               __URC_END_OF_STACK
#define _URC_HANDLER_FOUND              __URC_HANDLER_FOUND
#define _URC_INSTALL_CONTEXT            __URC_INSTALL_CONTEXT
#define _URC_CONTINUE_UNWIND            __URC_CONTINUE_UNWIND

#define _UA_SEARCH_PHASE                __UA_SEARCH_PHASE
#define _UA_CLEANUP_PHASE               __UA_CLEANUP_PHASE
#define _UA_HANDLER_FRAME               __UA_HANDLER_FRAME
#define _UA_FORCE_UNWIND                __UA_FORCE_UNWIND
#define _UA_END_OF_STACK                __UA_END_OF_STACK

#define _Unwind_RaiseException          __unwind_raise_exception
#define _Unwind_DeleteException         __unwind_delete_exception

#define _Unwind_Resume                  __unwind_resume
#define _Unwind_Resume_or_Rethrow       __unwind_resume_or_rethrow

#define _Unwind_ForcedUnwind            __unwind_force
#define _Unwind_GetLanguageSpecificData __unwind_get_language_specific_data

#define _Unwind_Backtrace               __unwind_backtrace
#define _Unwind_Calltrace               __unwind_calltrace

#define _Unwind_GetIP                   __unwind_get_ip
#define _Unwind_SetIP                   __unwind_set_ip

#define _Unwind_GetGR                   __unwind_get_gr
#define _Unwind_SetGR                   __unwind_set_gr

#define _Unwind_GetDataRelBase          __unwind_get_data_rel_base
#define _Unwind_GetTextRelBase          __unwind_get_text_rel_base

#define _Unwind_GetCFA                  __unwind_get_cfa
#define _Unwind_GetIPInfo               __unwind_get_ip_info

#define _Unwind_GetRegionStart          __unwind_get_region_start
#define _Unwind_FindEnclosingFunction   __unwind_find_enclosing_function

#ifdef __cplusplus
}
#endif

#endif