test-libunwind-debug-frame.c 415 B

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