diff options
author | Martin Storsjö <martin@martin.st> | 2023-04-05 14:12:24 +0300 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2023-04-11 00:00:30 +0300 |
commit | 55abdef3dac681866503ab286c3be6b4e8be3a9a (patch) | |
tree | 89fc484ead1a40e5d2700529915bf0cdb6060b2c /libunwind | |
parent | 469bdbd62ce2d1dcaef15a8209130547eb614ca6 (diff) | |
download | llvm-55abdef3dac681866503ab286c3be6b4e8be3a9a.zip llvm-55abdef3dac681866503ab286c3be6b4e8be3a9a.tar.gz llvm-55abdef3dac681866503ab286c3be6b4e8be3a9a.tar.bz2 |
[libunwind] Increase the external value of _LIBUNWIND_CURSOR_SIZE for SEH/x86_64
For x86_64 Windows targets (that use SEH), _LIBUNWIND_CURSOR_SIZE
is 204; this fixes corruption in test cases that include libunwind.h
without manually defining _LIBUNWIND_IS_NATIVE_ONLY.
If the libunwind.h header is included without defining
_LIBUNWIND_IS_NATIVE_ONLY (like in the libunwind test cases), the
sizes are set to accommodate the maximum possible cursors and
contexts.
(Alternatively, __libunwind_config.h should be changed to default
to native unwinding unless cross unwinding has been requested.
Cross unwinding isn't implemented as far as I know anyway.)
Differential Revision: https://reviews.llvm.org/D147634
Diffstat (limited to 'libunwind')
-rw-r--r-- | libunwind/include/__libunwind_config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libunwind/include/__libunwind_config.h b/libunwind/include/__libunwind_config.h index a4e1a36..a317a36 100644 --- a/libunwind/include/__libunwind_config.h +++ b/libunwind/include/__libunwind_config.h @@ -198,7 +198,7 @@ # define _LIBUNWIND_TARGET_S390X 1 #define _LIBUNWIND_TARGET_LOONGARCH 1 # define _LIBUNWIND_CONTEXT_SIZE 167 -# define _LIBUNWIND_CURSOR_SIZE 179 +# define _LIBUNWIND_CURSOR_SIZE 204 # define _LIBUNWIND_HIGHEST_DWARF_REGISTER 287 #endif // _LIBUNWIND_IS_NATIVE_ONLY |