^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) // SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #include <libunwind-arm.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #include <stdlib.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) extern int
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) UNW_OBJ(dwarf_find_debug_frame) (int found, unw_dyn_info_t *di_debug,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) unw_word_t ip, unw_word_t segbase,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) const char *obj_name, unw_word_t start,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) unw_word_t end);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define dwarf_find_debug_frame UNW_OBJ(dwarf_find_debug_frame)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) int main(void)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) dwarf_find_debug_frame(0, NULL, 0, 0, NULL, 0, 0);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) return 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) }