2015-07-19 23:23:10 +08:00
|
|
|
//===------------------------- __libunwind_config.h -----------------------===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is dual licensed under the MIT and the University of Illinois Open
|
|
|
|
// Source Licenses. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef ____LIBUNWIND_CONFIG_H__
|
|
|
|
#define ____LIBUNWIND_CONFIG_H__
|
|
|
|
|
|
|
|
#if defined(__arm__) && !defined(__USING_SJLJ_EXCEPTIONS__) && \
|
|
|
|
!defined(__ARM_DWARF_EH__)
|
2017-03-31 23:28:06 +08:00
|
|
|
#define _LIBUNWIND_ARM_EHABI
|
2015-07-19 23:23:10 +08:00
|
|
|
#endif
|
|
|
|
|
2017-10-29 04:19:49 +08:00
|
|
|
#define _LIBUNWIND_HIGHEST_DWARF_REGISTER_X86 8
|
|
|
|
#define _LIBUNWIND_HIGHEST_DWARF_REGISTER_X86_64 32
|
|
|
|
#define _LIBUNWIND_HIGHEST_DWARF_REGISTER_PPC 112
|
2018-01-17 04:54:10 +08:00
|
|
|
#define _LIBUNWIND_HIGHEST_DWARF_REGISTER_PPC64 116
|
2017-10-29 04:19:49 +08:00
|
|
|
#define _LIBUNWIND_HIGHEST_DWARF_REGISTER_ARM64 95
|
2017-11-02 16:16:16 +08:00
|
|
|
#define _LIBUNWIND_HIGHEST_DWARF_REGISTER_ARM 287
|
2017-10-29 04:19:49 +08:00
|
|
|
#define _LIBUNWIND_HIGHEST_DWARF_REGISTER_OR1K 31
|
2017-12-13 05:43:36 +08:00
|
|
|
#define _LIBUNWIND_HIGHEST_DWARF_REGISTER_MIPS 65
|
2017-10-29 04:19:49 +08:00
|
|
|
|
2016-05-25 20:36:34 +08:00
|
|
|
#if defined(_LIBUNWIND_IS_NATIVE_ONLY)
|
|
|
|
# if defined(__i386__)
|
2017-03-31 23:28:06 +08:00
|
|
|
# define _LIBUNWIND_TARGET_I386
|
2016-05-25 20:36:34 +08:00
|
|
|
# define _LIBUNWIND_CONTEXT_SIZE 8
|
2017-10-31 03:06:34 +08:00
|
|
|
# define _LIBUNWIND_CURSOR_SIZE 15
|
2017-10-29 04:19:49 +08:00
|
|
|
# define _LIBUNWIND_HIGHEST_DWARF_REGISTER _LIBUNWIND_HIGHEST_DWARF_REGISTER_X86
|
2016-05-25 20:36:34 +08:00
|
|
|
# elif defined(__x86_64__)
|
|
|
|
# define _LIBUNWIND_TARGET_X86_64 1
|
2017-10-27 16:11:36 +08:00
|
|
|
# if defined(_WIN64)
|
|
|
|
# define _LIBUNWIND_CONTEXT_SIZE 54
|
|
|
|
# define _LIBUNWIND_CURSOR_SIZE 66
|
|
|
|
# else
|
|
|
|
# define _LIBUNWIND_CONTEXT_SIZE 21
|
|
|
|
# define _LIBUNWIND_CURSOR_SIZE 33
|
|
|
|
# endif
|
2017-10-29 04:19:49 +08:00
|
|
|
# define _LIBUNWIND_HIGHEST_DWARF_REGISTER _LIBUNWIND_HIGHEST_DWARF_REGISTER_X86_64
|
2018-01-03 06:11:30 +08:00
|
|
|
# elif defined(__powerpc64__)
|
|
|
|
# define _LIBUNWIND_TARGET_PPC64 1
|
2018-01-17 04:54:10 +08:00
|
|
|
# define _LIBUNWIND_CONTEXT_SIZE 167
|
|
|
|
# define _LIBUNWIND_CURSOR_SIZE 179
|
2018-01-03 06:11:30 +08:00
|
|
|
# define _LIBUNWIND_HIGHEST_DWARF_REGISTER _LIBUNWIND_HIGHEST_DWARF_REGISTER_PPC64
|
2016-05-25 20:36:34 +08:00
|
|
|
# elif defined(__ppc__)
|
|
|
|
# define _LIBUNWIND_TARGET_PPC 1
|
|
|
|
# define _LIBUNWIND_CONTEXT_SIZE 117
|
2017-10-31 03:06:34 +08:00
|
|
|
# define _LIBUNWIND_CURSOR_SIZE 124
|
2017-10-29 04:19:49 +08:00
|
|
|
# define _LIBUNWIND_HIGHEST_DWARF_REGISTER _LIBUNWIND_HIGHEST_DWARF_REGISTER_PPC
|
2016-05-25 20:36:34 +08:00
|
|
|
# elif defined(__aarch64__)
|
|
|
|
# define _LIBUNWIND_TARGET_AARCH64 1
|
|
|
|
# define _LIBUNWIND_CONTEXT_SIZE 66
|
|
|
|
# define _LIBUNWIND_CURSOR_SIZE 78
|
2017-10-29 04:19:49 +08:00
|
|
|
# define _LIBUNWIND_HIGHEST_DWARF_REGISTER _LIBUNWIND_HIGHEST_DWARF_REGISTER_ARM64
|
2016-05-25 20:36:34 +08:00
|
|
|
# elif defined(__arm__)
|
|
|
|
# define _LIBUNWIND_TARGET_ARM 1
|
2016-07-07 18:55:39 +08:00
|
|
|
# if defined(__ARM_WMMX)
|
2017-10-25 16:07:19 +08:00
|
|
|
# define _LIBUNWIND_CONTEXT_SIZE 61
|
|
|
|
# define _LIBUNWIND_CURSOR_SIZE 68
|
2016-07-07 18:55:39 +08:00
|
|
|
# else
|
|
|
|
# define _LIBUNWIND_CONTEXT_SIZE 42
|
|
|
|
# define _LIBUNWIND_CURSOR_SIZE 49
|
|
|
|
# endif
|
2017-10-29 04:19:49 +08:00
|
|
|
# define _LIBUNWIND_HIGHEST_DWARF_REGISTER _LIBUNWIND_HIGHEST_DWARF_REGISTER_ARM
|
2016-05-25 20:36:34 +08:00
|
|
|
# elif defined(__or1k__)
|
|
|
|
# define _LIBUNWIND_TARGET_OR1K 1
|
|
|
|
# define _LIBUNWIND_CONTEXT_SIZE 16
|
2017-10-31 03:06:34 +08:00
|
|
|
# define _LIBUNWIND_CURSOR_SIZE 24
|
2017-10-29 04:19:49 +08:00
|
|
|
# define _LIBUNWIND_HIGHEST_DWARF_REGISTER _LIBUNWIND_HIGHEST_DWARF_REGISTER_OR1K
|
2017-12-13 05:43:36 +08:00
|
|
|
# elif defined(__mips__)
|
2018-02-28 05:24:02 +08:00
|
|
|
# if defined(_ABIO32) && _MIPS_SIM == _ABIO32 && defined(__mips_soft_float)
|
2017-12-13 05:43:36 +08:00
|
|
|
# define _LIBUNWIND_TARGET_MIPS_O32 1
|
|
|
|
# define _LIBUNWIND_CONTEXT_SIZE 18
|
|
|
|
# define _LIBUNWIND_CURSOR_SIZE 24
|
2018-02-28 05:24:02 +08:00
|
|
|
# elif defined(_ABIN32) && _MIPS_SIM == _ABIN32 && defined(__mips_soft_float)
|
|
|
|
# define _LIBUNWIND_TARGET_MIPS_NEWABI 1
|
|
|
|
# define _LIBUNWIND_CONTEXT_SIZE 35
|
|
|
|
# define _LIBUNWIND_CURSOR_SIZE 42
|
|
|
|
# elif defined(_ABI64) && _MIPS_SIM == _ABI64 && defined(__mips_soft_float)
|
2018-01-10 01:07:18 +08:00
|
|
|
# define _LIBUNWIND_TARGET_MIPS_NEWABI 1
|
2017-12-13 05:43:36 +08:00
|
|
|
# define _LIBUNWIND_CONTEXT_SIZE 35
|
|
|
|
# define _LIBUNWIND_CURSOR_SIZE 47
|
|
|
|
# else
|
|
|
|
# error "Unsupported MIPS ABI and/or environment"
|
|
|
|
# endif
|
|
|
|
# define _LIBUNWIND_HIGHEST_DWARF_REGISTER _LIBUNWIND_HIGHEST_DWARF_REGISTER_MIPS
|
2016-05-25 20:36:34 +08:00
|
|
|
# else
|
|
|
|
# error "Unsupported architecture."
|
|
|
|
# endif
|
|
|
|
#else // !_LIBUNWIND_IS_NATIVE_ONLY
|
2017-03-31 23:28:06 +08:00
|
|
|
# define _LIBUNWIND_TARGET_I386
|
2016-05-25 20:36:34 +08:00
|
|
|
# define _LIBUNWIND_TARGET_X86_64 1
|
|
|
|
# define _LIBUNWIND_TARGET_PPC 1
|
2018-01-03 06:11:30 +08:00
|
|
|
# define _LIBUNWIND_TARGET_PPC64 1
|
2016-05-25 20:36:34 +08:00
|
|
|
# define _LIBUNWIND_TARGET_AARCH64 1
|
|
|
|
# define _LIBUNWIND_TARGET_ARM 1
|
|
|
|
# define _LIBUNWIND_TARGET_OR1K 1
|
2017-12-13 05:43:36 +08:00
|
|
|
# define _LIBUNWIND_TARGET_MIPS_O32 1
|
2018-01-10 01:07:18 +08:00
|
|
|
# define _LIBUNWIND_TARGET_MIPS_NEWABI 1
|
2018-01-17 04:54:10 +08:00
|
|
|
# define _LIBUNWIND_CONTEXT_SIZE 167
|
|
|
|
# define _LIBUNWIND_CURSOR_SIZE 179
|
2017-11-02 16:16:16 +08:00
|
|
|
# define _LIBUNWIND_HIGHEST_DWARF_REGISTER 287
|
2016-05-25 20:36:34 +08:00
|
|
|
#endif // _LIBUNWIND_IS_NATIVE_ONLY
|
|
|
|
|
2015-07-19 23:23:10 +08:00
|
|
|
#endif // ____LIBUNWIND_CONFIG_H__
|