2 #pragma GCC diagnostic ignored "-Wstrict-prototypes"
11 #include <gnu/libc-version.h>
13 #include <elfutils/libdw.h>
14 #include <elfutils/version.h>
16 #include <libunwind.h>
28 #pragma GCC diagnostic error "-Wstrict-prototypes"
47 Elf *elf = elf_begin(0, ELF_C_READ, 0);
53 Elf *elf = elf_begin(0, ELF_C_READ_MMAP, 0);
59 const char *version = gnu_get_libc_version();
65 Dwarf *dbg = dwarf_begin(0, DWARF_C_READ);
72 return elf_getphdrnum(0, &dst);
75 extern int UNW_OBJ(dwarf_search_unwind_table) (unw_addr_space_t as,
79 int need_unwind_info, void *arg);
82 #define dwarf_search_unwind_table UNW_OBJ(dwarf_search_unwind_table)
86 unw_addr_space_t addr_space;
87 addr_space = unw_create_addr_space(NULL, 0);
88 unw_init_remote(NULL, addr_space, NULL);
89 dwarf_search_unwind_table(addr_space, 0, NULL, NULL, 0, NULL);
95 printf("error message: %s\n", audit_errno_to_name(0));
101 return SLsmg_init_smg();
104 int main12(int argc, char *argv[])
106 gtk_init(&argc, &argv);
131 #if PY_VERSION_HEX >= 0x03000000
142 bfd_demangle(0, 0, 0);
146 void exit_function(int x, void *y)
152 return on_exit(exit_function, NULL);
157 void *backtrace_fns[1];
160 entries = backtrace(backtrace_fns, 1);
161 backtrace_symbols(backtrace_fns, entries);
172 int main(int argc, char *argv[])