2 * This file setups defines to compile arch specific binary from the
5 * The function 'LIBUNWIND__ARCH_REG_ID' name is set according to arch
6 * name and the defination of this function is included directly from
7 * 'arch/x86/util/unwind-libunwind.c', to make sure that this function
8 * is defined no matter what arch the host is.
10 * Finally, the arch specific unwind methods are exported which will
11 * be assigned to each x86 thread.
14 #define REMOTE_UNWIND_LIBUNWIND
15 #define LIBUNWIND__ARCH_REG_ID(regnum) libunwind__x86_reg_id(regnum)
19 #include "libunwind-x86.h"
20 #include <../../../../arch/x86/include/uapi/asm/perf_regs.h>
22 /* HAVE_ARCH_X86_64_SUPPORT is used in'arch/x86/util/unwind-libunwind.c'
23 * for x86_32, we undef it to compile code for x86_32 only.
25 #undef HAVE_ARCH_X86_64_SUPPORT
26 #include "../../arch/x86/util/unwind-libunwind.c"
28 /* Explicitly define NO_LIBUNWIND_DEBUG_FRAME, because non-ARM has no
29 * dwarf_find_debug_frame() function.
31 #ifndef NO_LIBUNWIND_DEBUG_FRAME
32 #define NO_LIBUNWIND_DEBUG_FRAME
34 #include "util/unwind-libunwind-local.c"
36 struct unwind_libunwind_ops
*
37 x86_32_unwind_libunwind_ops
= &_unwind_libunwind_ops
;