[libcxx-commits] [compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)
Daniil Kovalev via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Sep 3 05:16:14 PDT 2025
================
@@ -557,7 +630,21 @@ set_registers(_Unwind_Exception* unwind_exception, _Unwind_Context* context,
reinterpret_cast<uintptr_t>(unwind_exception));
_Unwind_SetGR(context, __builtin_eh_return_data_regno(1),
static_cast<uintptr_t>(results.ttypeIndex));
+#if __has_feature(ptrauth_qualifier)
+ auto stackPointer = _Unwind_GetGR(context, UNW_REG_SP);
----------------
kovdan01 wrote:
`UNW_REG_SP` and `unw_word_t` (see below) are declared in libunwind.h. While I'm not sure if including this header here is a good idea (and I see that you've removed that in e88ad93aa935f0ae7babc05f328a9b65cb22d4db), we definitely need to provide declarations for these (otherwise we can't even compile).
Might also be related to this thread https://github.com/llvm/llvm-project/pull/143230#discussion_r2240692361
https://github.com/llvm/llvm-project/pull/143230
More information about the libcxx-commits
mailing list