• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===------------------------ libunwind_ext.h -----------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //
9 //  Extensions to libunwind API.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef __LIBUNWIND_EXT__
14 #define __LIBUNWIND_EXT__
15 
16 #include <libunwind.h>
17 
18 #define UNW_STEP_SUCCESS 1
19 #define UNW_STEP_END     0
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 // SPI
25 extern void unw_iterate_dwarf_unwind_cache(void (*func)(unw_word_t ip_start,
26                                                         unw_word_t ip_end,
27                                                         unw_word_t fde,
28                                                         unw_word_t mh));
29 
30 // IPI
31 extern void _unw_add_dynamic_fde(unw_word_t fde);
32 extern void _unw_remove_dynamic_fde(unw_word_t fde);
33 
34 #ifdef __cplusplus
35 }
36 #endif
37 
38 #endif // __LIBUNWIND_EXT__
39