12 #include <elfutils/libdw.h>
13 #include <elfutils/version.h>
14 #ifndef _ELFUTILS_PREREQ
20 Dwarf *dbg = dwarf_begin(0, DWARF_C_READ);
31 Elf *elf = elf_begin(0, ELF_C_READ, 0);
37 #include <gnu/libc-version.h>
41 const char *version = gnu_get_libc_version();
46 define SOURCE_ELF_MMAP
50 Elf *elf = elf_begin(0, ELF_C_READ_MMAP, 0);
63 return newtFinished();
70 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
72 #pragma GCC diagnostic error \"-Wstrict-prototypes\"
74 int main(int argc, char *argv[])
76 gtk_init(&argc, &argv);
82 define SOURCE_GTK2_INFOBAR
83 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
85 #pragma GCC diagnostic error \"-Wstrict-prototypes\"
97 define SOURCE_PERL_EMBED
110 define SOURCE_PYTHON_VERSION
112 #if PY_VERSION_HEX >= 0x03000000
117 define SOURCE_PYTHON_EMBED
132 bfd_demangle(0, 0, 0);
137 define SOURCE_CPLUS_DEMANGLE
138 extern char *cplus_demangle(const char *, int);
142 cplus_demangle(0, 0);
147 define SOURCE_STRLCPY
149 extern size_t strlcpy(char *dest, const char *src, size_t size);
153 strlcpy(NULL, NULL, 0);
159 define SOURCE_LIBUNWIND
160 #include <libunwind.h>
163 extern int UNW_OBJ(dwarf_search_unwind_table) (unw_addr_space_t as,
167 int need_unwind_info, void *arg);
170 #define dwarf_search_unwind_table UNW_OBJ(dwarf_search_unwind_table)
174 unw_addr_space_t addr_space;
175 addr_space = unw_create_addr_space(NULL, 0);
176 unw_init_remote(NULL, addr_space, NULL);
177 dwarf_search_unwind_table(addr_space, 0, NULL, NULL, 0, NULL);
184 define SOURCE_BACKTRACE
185 #include <execinfo.h>
191 backtrace_symbols(NULL, 0);
198 define SOURCE_LIBAUDIT
199 #include <libaudit.h>