summaryrefslogtreecommitdiff
path: root/libunwind/include
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-08-31 14:56:55 +0000
committerMartin Storsjo <martin@martin.st>2018-08-31 14:56:55 +0000
commita2646444d284b6f1f2a2f657a83c72eea0ec750c (patch)
tree65466dcda5c0f3e5ccb9c309de31dc7665d3cd79 /libunwind/include
parente3d6b9786e61c80a089a5812e7699dd18f0ebcc3 (diff)
downloadllvm-a2646444d284b6f1f2a2f657a83c72eea0ec750c.tar.gz
Fix existing code for SEH on ARM to compile correctly
Even though SEH for ARM is incomplete, make what code already exists at least compile correctly. The _LIBUNWIND_CURSOR_SIZE wasn't correct. ARM (and AArch64) have a DISPATCHER_CONTEXT field named TargetPc instead of TargetIp. For the libunwind.h UNW_* constants, there is no UNW_ARM_PC, only UNW_ARM_IP. Don't use 'r' as loop variable when 'r' already is a Registers_arm member. Differential Revision: https://reviews.llvm.org/D51530 llvm-svn: 341217
Diffstat (limited to 'libunwind/include')
-rw-r--r--libunwind/include/__libunwind_config.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libunwind/include/__libunwind_config.h b/libunwind/include/__libunwind_config.h
index 0704946d30af..a1e2f6de13a3 100644
--- a/libunwind/include/__libunwind_config.h
+++ b/libunwind/include/__libunwind_config.h
@@ -63,7 +63,7 @@
# define _LIBUNWIND_TARGET_ARM 1
# if defined(__SEH__)
# define _LIBUNWIND_CONTEXT_SIZE 42
-# define _LIBUNWIND_CURSOR_SIZE 85
+# define _LIBUNWIND_CURSOR_SIZE 80
# elif defined(__ARM_WMMX)
# define _LIBUNWIND_CONTEXT_SIZE 61
# define _LIBUNWIND_CURSOR_SIZE 68