blob: cb378b7d68669402e262508cb0116b54c4d3cf0f [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
He Kuangb1d96002016-05-10 07:40:31 +00002#include <libunwind-arm.h>
3#include <stdlib.h>
4
5extern int UNW_OBJ(dwarf_search_unwind_table) (unw_addr_space_t as,
6 unw_word_t ip,
7 unw_dyn_info_t *di,
8 unw_proc_info_t *pi,
9 int need_unwind_info, void *arg);
10
11
12#define dwarf_search_unwind_table UNW_OBJ(dwarf_search_unwind_table)
13
14static unw_accessors_t accessors;
15
16int main(void)
17{
18 unw_addr_space_t addr_space;
19
20 addr_space = unw_create_addr_space(&accessors, 0);
21 if (addr_space)
22 return 0;
23
24 unw_init_remote(NULL, addr_space, NULL);
25 dwarf_search_unwind_table(addr_space, 0, NULL, NULL, 0, NULL);
26
27 return 0;
28}