1 #include <libunwind-aarch64.h> 2 #include <stdlib.h> 3 4 extern int UNW_OBJ(dwarf_search_unwind_table) (unw_addr_space_t as, 5 unw_word_t ip, 6 unw_dyn_info_t *di, 7 unw_proc_info_t *pi, 8 int need_unwind_info, void *arg); 9 10 #define dwarf_search_unwind_table UNW_OBJ(dwarf_search_unwind_table) 11 12 static unw_accessors_t accessors; 13 14 int main(void) 15 { 16 unw_addr_space_t addr_space; 17 18 addr_space = unw_create_addr_space(&accessors, 0); 19 if (addr_space) 20 return 0; 21 22 unw_init_remote(NULL, addr_space, NULL); 23 dwarf_search_unwind_table(addr_space, 0, NULL, NULL, 0, NULL); 24 25 return 0; 26 } 27