File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #pragma once
2+
3+ #include <stddef.h>
4+ #include <stdint.h>
5+ #include <ucontext.h>
6+
7+ // copied from libunwind.h
8+ #ifdef X86_32
9+ #define UNW_REG_IP 8
10+ typedef uint32_t unw_word_t ;
11+ typedef int32_t unw_sword_t ;
12+ #elif defined(X86_64 )
13+ #define UNW_REG_IP 16
14+ typedef uint64_t unw_word_t ;
15+ typedef int64_t unw_sword_t ;
16+ #endif
17+
18+
19+ #define UNW_TDEP_CURSOR_LEN 127
20+
21+ typedef struct unw_cursor
22+ {
23+ unw_word_t opaque [UNW_TDEP_CURSOR_LEN ];
24+ }
25+ unw_cursor_t ;
26+
27+ typedef struct unw_proc_info
28+ {
29+ unw_word_t start_ip ; /* first IP covered by this procedure */
30+ unw_word_t end_ip ; /* first IP NOT covered by this procedure */
31+ unw_word_t lsda ; /* address of lang.-spec. data area (if any) */
32+ unw_word_t handler ; /* optional personality routine */
33+ unw_word_t gp ; /* global-pointer value for this procedure */
34+ unw_word_t flags ; /* misc. flags */
35+
36+ int format ; /* unwind-info format (arch-specific) */
37+ int unwind_info_size ; /* size of the information (if applicable) */
38+ void * unwind_info ; /* unwind-info (arch-specific) */
39+ } unw_proc_info_t ;
40+
41+ // end of copy
42+
43+
You can’t perform that action at this time.
0 commit comments