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);
70 return SLsmg_init_smg
();
77 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
79 #pragma GCC diagnostic error \"-Wstrict-prototypes\"
81 int main
(int argc
, char
*argv
[])
83 gtk_init
(&argc
, &argv
);
89 define SOURCE_GTK2_INFOBAR
90 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
92 #pragma GCC diagnostic error \"-Wstrict-prototypes\"
104 define SOURCE_PERL_EMBED
117 define SOURCE_PYTHON_VERSION
119 #if PY_VERSION_HEX >= 0x03000000
127 define SOURCE_PYTHON_EMBED
142 bfd_demangle
(0, 0, 0);
147 define SOURCE_CPLUS_DEMANGLE
148 extern char
*cplus_demangle
(const char
*, int
);
152 cplus_demangle
(0, 0);
157 define SOURCE_STRLCPY
159 extern size_t strlcpy
(char
*dest
, const char
*src
, size_t size
);
163 strlcpy
(NULL
, NULL
, 0);
169 define SOURCE_LIBUNWIND
170 #include <libunwind.h>
173 extern int UNW_OBJ
(dwarf_search_unwind_table
) (unw_addr_space_t
as,
177 int need_unwind_info
, void
*arg
);
180 #define dwarf_search_unwind_table UNW_OBJ(dwarf_search_unwind_table)
184 unw_addr_space_t addr_space
;
185 addr_space
= unw_create_addr_space
(NULL
, 0);
186 unw_init_remote
(NULL
, addr_space
, NULL
);
187 dwarf_search_unwind_table
(addr_space
, 0, NULL
, NULL
, 0, NULL
);
194 define SOURCE_BACKTRACE
195 #include <execinfo.h>
201 backtrace_symbols
(NULL
, 0);
208 define SOURCE_LIBAUDIT
209 #include <libaudit.h>
218 define SOURCE_ON_EXIT
223 return on_exit
(NULL
, NULL
);
227 define SOURCE_LIBNUMA