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
();
47 #include <android/api-level.h>
51 return __ANDROID_API__
;
55 define SOURCE_ELF_MMAP
59 Elf
*elf
= elf_begin
(0, ELF_C_READ_MMAP
, 0);
72 return newtFinished
();
79 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
81 #pragma GCC diagnostic error \"-Wstrict-prototypes\"
83 int main
(int argc
, char
*argv
[])
85 gtk_init
(&argc
, &argv
);
91 define SOURCE_GTK2_INFOBAR
92 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
94 #pragma GCC diagnostic error \"-Wstrict-prototypes\"
106 define SOURCE_PERL_EMBED
119 define SOURCE_PYTHON_VERSION
121 #if PY_VERSION_HEX >= 0x03000000
129 define SOURCE_PYTHON_EMBED
144 bfd_demangle
(0, 0, 0);
149 define SOURCE_CPLUS_DEMANGLE
150 extern char
*cplus_demangle
(const char
*, int
);
154 cplus_demangle
(0, 0);
159 define SOURCE_STRLCPY
161 extern size_t strlcpy
(char
*dest
, const char
*src
, size_t size
);
165 strlcpy
(NULL
, NULL
, 0);
171 define SOURCE_LIBUNWIND
172 #include <libunwind.h>
175 extern int UNW_OBJ
(dwarf_search_unwind_table
) (unw_addr_space_t
as,
179 int need_unwind_info
, void
*arg
);
182 #define dwarf_search_unwind_table UNW_OBJ(dwarf_search_unwind_table)
186 unw_addr_space_t addr_space
;
187 addr_space
= unw_create_addr_space
(NULL
, 0);
188 unw_init_remote
(NULL
, addr_space
, NULL
);
189 dwarf_search_unwind_table
(addr_space
, 0, NULL
, NULL
, 0, NULL
);
196 define SOURCE_BACKTRACE
197 #include <execinfo.h>
203 backtrace_symbols
(NULL
, 0);
210 define SOURCE_LIBAUDIT
211 #include <libaudit.h>
220 define SOURCE_ON_EXIT
225 return on_exit
(NULL
, NULL
);